linkpi_firmware_history/rootfs/etc/udev/autounmount.sh

12 lines
218 B
Bash
Raw Normal View History

2024-02-15 22:07:30 +01:00
#!/bin/sh
2024-02-15 22:07:42 +01:00
. /link/shell/util/func.sh
jopen /link/config/misc/disk.json
enable=`jget enable`
if [ $enable == "true" ];then
used=`jget used`
if [ $used == "local" ];then
umount -l -f /root/usb
fi
fi