linkpi_firmware_history/rootfs/link/shell/mountUsb.sh

12 lines
247 B
Bash
Raw Normal View History

2024-02-15 22:07:30 +01:00
#!/bin/sh
umount /root/usb
if [ -e "/dev/sda" ]; then
if [ -e "/dev/sda1" ]; then
/bin/mount -t vfat /dev/sda1 /root/usb
/bin/mount -t ext4 /dev/sda1 /root/usb
else
/bin/mount -t vfat /dev/sda /root/usb
/bin/mount -t ext4 /dev/sda /root/usb
fi
fi