diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-11 20:56:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-11 20:58:07 +0000 |
commit | dedf250425d3cb082cae9f0005d94fbc01e1e953 (patch) | |
tree | f11dbb84a96e1c5fa36d5df3fb08adb08bc204f1 | |
parent | 22c9dda88f18341ffdee1320781f5284f819b936 (diff) | |
download | alpine-conf-dedf250425d3cb082cae9f0005d94fbc01e1e953.zip |
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.
-rw-r--r-- | lbu.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |