projects
/
grml-autoconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
541958e
)
if multiple mountpoints avail, pick the first one
author
Csillag Tamas
<cstamas@digitus.itk.ppke.hu>
Wed, 4 Oct 2023 12:55:22 +0000
(14:55 +0200)
committer
GitHub
<noreply@github.com>
Wed, 4 Oct 2023 12:55:22 +0000
(14:55 +0200)
autoconfig.functions
patch
|
blob
|
history
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
- 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