2024-02-15 22:07:30 +01:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -e "/dev/sda" ]; then
|
2024-02-15 22:07:35 +01:00
|
|
|
umount /root/usb
|
2024-02-15 22:07:30 +01:00
|
|
|
if [ -e "/dev/sda1" ]; then
|
2024-02-15 22:07:35 +01:00
|
|
|
/bin/mount -t vfat -o rw,relatime,codepage=936,utf8 /dev/sda1 /root/usb
|
2024-02-15 22:07:30 +01:00
|
|
|
/bin/mount -t ext4 /dev/sda1 /root/usb
|
2024-02-15 22:07:35 +01:00
|
|
|
/usr/bin/ntfs-3g /dev/sda1 /root/usb
|
2024-02-15 22:07:30 +01:00
|
|
|
else
|
2024-02-15 22:07:35 +01:00
|
|
|
/bin/mount -t vfat -o rw,relatime,codepage=936,utf8 /dev/sda /root/usb
|
2024-02-15 22:07:30 +01:00
|
|
|
/bin/mount -t ext4 /dev/sda /root/usb
|
2024-02-15 22:07:35 +01:00
|
|
|
/usr/bin/ntfs-3g /dev/sda /root/usb
|
2024-02-15 22:07:30 +01:00
|
|
|
fi
|
|
|
|
fi
|