fixed the * bug

This commit is contained in:
Gordon Grant-Stuart 2023-05-23 15:58:58 +01:00
parent f2805e6be1
commit 22948a5b7c

View File

@ -86,7 +86,7 @@ case "$1" in
[[ -e "$BASEDIR/var/tunnelkeeper.pid" ]] && exit
genconfig
echo $$ > "$BASEDIR/var/tunnelkeeper.pid"
cat "$SSHCONF" | awk '/^Host / {print $2}' | xargs -I% -P0 $0 FORKSTART % '#tunnelkeeper' &
cat "$SSHCONF" | awk '/^Host / {print $2}' | grep -v \* | xargs -I% -P0 $0 FORKSTART % '#tunnelkeeper' &
;;
stop )
rm -f "$BASEDIR/var/tunnelkeeper.pid"