projects
/
grml-autoconfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
if multiple mountpoints avail, pick the first one
[grml-autoconfig.git]
/
autoconfig.functions
diff --git
a/autoconfig.functions
b/autoconfig.functions
index
254129b
..
228a561
100755
(executable)
--- a/
autoconfig.functions
+++ b/
autoconfig.functions
@@
-1412,7
+1412,7
@@
else
else
eindent
einfo "debs, config, scripts are read from $DCSDEVICE." ; eend 0
else
eindent
einfo "debs, config, scripts are read from $DCSDEVICE." ; eend 0
- DCSDIR="$(< /proc/mounts awk -v DCSDEV=$DCSDEVICE '{if ($1 == DCSDEV) { print $2 }}')"
+ DCSDIR="$(< /proc/mounts awk -v DCSDEV=$DCSDEVICE '{if ($1 == DCSDEV) { print $2
; exit
}}')"
if [ -n "$DCSDIR" ]; then
ewarn "$DCSDEVICE already mounted on $DCSDIR"; eend 0
else
if [ -n "$DCSDIR" ]; then
ewarn "$DCSDEVICE already mounted on $DCSDIR"; eend 0
else