From 41b19895beeab2e10064b4512de85c4f1d13a7ed Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Thu, 29 Sep 2022 15:52:28 +1000 Subject: [PATCH] allow logging without -v --- rrqnet-ifupdown.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rrqnet-ifupdown.sh b/rrqnet-ifupdown.sh index 4c6ce4d..99e45df 100755 --- a/rrqnet-ifupdown.sh +++ b/rrqnet-ifupdown.sh @@ -86,8 +86,9 @@ start_cable_pre_up() { $RRQDAEMON $IF_RRQNET_OPTIONS \ $TAP $IF_RRQNET_PORT $IF_RRQNET_REMOTE else - daemon -U -r -a 10 -n $NAME -E "${IF_RRQNET_LOG#* }" -- \ - $RRQDAEMON ${IF_RRQNET_LOG%% *} $IF_RRQNET_OPTIONS \ + LOG=${IF_RRQNET_LOG#* } + daemon -U -r -a 10 -n $NAME -E "$LOG" -- \ + $RRQDAEMON ${IF_RRQNET_LOG%$LOG} $IF_RRQNET_OPTIONS \ $TAP $IF_RRQNET_PORT $IF_RRQNET_REMOTE fi } -- 2.39.2