udisks: fix udisks start script

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-06-13 21:10:57 +02:00
parent 32dfbccb57
commit 7e889d3ad0

View File

@ -26,6 +26,8 @@
(
progress "automount internal disks"
wait_for_dbus
drive_dump () {
udisks --dump | tr -d ' ' | grep 'device-file:' | cut -d ':' -f2
}
@ -40,7 +42,6 @@
USAGE="`show_info "usage" $DEVICE`"
if [ "$REMOVABLE" = "0" -a "$MOUNTED" = "0" -a "$USAGE" = "filesystem" ]; then
wait_for_dbus
udisks --mount "$DEVICE" >/dev/null
fi