summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lbu.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbu.in b/lbu.in
index 7709567..da8ba86 100644
--- a/lbu.in
+++ b/lbu.in
@@ -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
}