summaryrefslogtreecommitdiffstats
path: root/recipes-support/udisks/files/automount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/udisks/files/automount.sh')
-rwxr-xr-xrecipes-support/udisks/files/automount.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-support/udisks/files/automount.sh b/recipes-support/udisks/files/automount.sh
index 8a3bc86d8..3e4b24b5f 100755
--- a/recipes-support/udisks/files/automount.sh
+++ b/recipes-support/udisks/files/automount.sh
@@ -6,7 +6,7 @@ pathtoname() {
MOUNT_OPTIONS="ro,sync"
-rmdir /media/* || true &> /dev/null
+rmdir /media/* &> /dev/null || true
for DEVNAME in $(udisks --enumerate-device-files|grep -e sd[a-z][0-9]); do
udisks --mount-options $MOUNT_OPTIONS --mount $DEVNAME
done