mirror of
https://github.com/femtofox/femtofox.git
synced 2026-10-26 19:02:00 -04:00
USB config tool now supports SD card readers
This commit is contained in:
parent
2eb9d4ce83
commit
9eefe450d0
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue