From deb3d70e647ada382f2a82d7d9ff77ebb3f5772b Mon Sep 17 00:00:00 2001 From: Csillag Tamas Date: Wed, 4 Oct 2023 14:55:22 +0200 Subject: [PATCH] if multiple mountpoints avail, pick the first one --- autoconfig.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4