X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=autoconfig.functions;h=228a561090c827063c1a1aca01a0a2dbc07450df;hb=deb3d70e647ada382f2a82d7d9ff77ebb3f5772b;hp=254129b5655401210fc41f5bd963f0e4fa5b66be;hpb=541958eb286e3ede2909413e586c7b64c0fdf565;p=grml-autoconfig.git diff --git a/autoconfig.functions b/autoconfig.functions index 254129b..228a561 100755 --- 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