From 9eefe450d0e50e400ca57bfe3ae78e25faa59e5d Mon Sep 17 00:00:00 2001 From: nagumii Date: Tue, 10 Dec 2024 00:23:06 +0200 Subject: [PATCH] USB config tool now supports SD card readers --- .../sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/usbconfig.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/usbconfig.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/usbconfig.sh index 494b49d..6918771 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/usbconfig.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/usbconfig.sh @@ -33,7 +33,7 @@ escape_sed() { } # Check if the mount point exists and if a USB drive is plugged in -usb_device=$(lsblk -o NAME,FSTYPE,SIZE,TYPE,MOUNTPOINT | grep -E "vfat|ext4|ntfs|exfat" | grep -E "sd[a-z][0-9]" | awk '{print $1}' | sed 's/[^a-zA-Z0-9]//g' | head -n 1) +usb_device=$(lsblk -o NAME,FSTYPE,SIZE,TYPE,MOUNTPOINT | grep -E "vfat|ext4|ntfs|exfat" | grep -E "sd[a-z]([0-9]*)" | awk '{print $1}' | sed 's/[^a-zA-Z0-9]//g' | head -n ) if [ -d "$mount_point" ]; then sudo rmdir "$mount_point"