Commit dedf2504 authored by Natanael Copa's avatar Natanael Copa

lbu: fix the way we check if a dir is mounted or not

this works around an issue when lbu wrongly assumes /media/usb is
mounted when /media/usbdisk is.
parent 22c9dda8
......@@ -65,7 +65,7 @@ exit_clean() {
}
mount_once() {
if ! grep $1 /proc/mounts >/dev/null; then
if awk "\$2 == \"$1\" {exit 1}" /proc/mounts; then
mount $1 && UMOUNT_LIST="$1 $UMOUNT_LIST"
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment