mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
udisks: fix mount-disks
This commit is contained in:
parent
48d6a93ec6
commit
d1b910dd4e
@ -28,7 +28,7 @@
|
||||
|
||||
wait_for_dbus
|
||||
|
||||
for DEVICE in `find /sys/class/block/sd*/removable > /dev/null 2>&1`; do
|
||||
for DEVICE in `ls /sys/class/block/sd*/removable 2>/dev/null`; do
|
||||
if [ "$(cat $DEVICE)" = "0" ]; then
|
||||
DISK=$(echo "$DEVICE" | sed -e "s,/sys/class/block,/dev," -e "s,/removable,,")
|
||||
for PART in $(ls "$DISK"[0-9]*);do
|
||||
|
Loading…
x
Reference in New Issue
Block a user