From: Ralph Ronnquist Date: Thu, 29 Sep 2022 05:52:28 +0000 (+1000) Subject: allow logging without -v X-Git-Tag: 1.5.3~3 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=41b19895beeab2e10064b4512de85c4f1d13a7ed;p=rrq%2Frrqnet.git allow logging without -v --- 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 }