Browse Source

update for new -tpg argument

suites/unstable 1.5.2
Ralph Rönnquist 3 months ago
parent
commit
a6238294b8
  1. 22
      rrqnet-ifupdown.sh
  2. 4
      rrqnet-ifupdown.sh.8.adoc

22
rrqnet-ifupdown.sh

@ -68,19 +68,6 @@ stop_dhclient() {
############################################################
## The action functions
QUIRK=
LOGFLAG=
LOGFILE=
#function
process_logoption() {
if [ -n "${1##-v*}" ] ; then
QUIRK="$1"
shift
fi
LOGFLAG="$1"
LOGFILE="$2"
}
#function
start_cable_pre_up() {
local TAP
@ -94,14 +81,13 @@ start_cable_pre_up() {
fi
[ -z "$IF_RRQNET_NICE" ] || \
RRQDAEMON="/usr/bin/nice -n $IF_RRQNET_NICE $RRQDAEMON"
process_logoption ${IF_RRQNET_LOG}
if [ -z "$LOGFILE" ] ; then
if [ -z "$IF_RRQNET_LOG" ] ; then
daemon -U -r -a 10 -n $NAME -- \
$RRQDAEMON $QUIRK $IF_RRQNET_OPTIONS \
$RRQDAEMON $IF_RRQNET_OPTIONS \
$TAP $IF_RRQNET_PORT $IF_RRQNET_REMOTE
else
daemon -U -r -a 10 -n $NAME -E "$LOGFILE" -- \
$RRQDAEMON $QUIRK $LOGFLAG $IF_RRQNET_OPTIONS \
daemon -U -r -a 10 -n $NAME -E "${IF_RRQNET_LOG#* }" -- \
$RRQDAEMON ${IF_RRQNET_LOG%% *} $IF_RRQNET_OPTIONS \
$TAP $IF_RRQNET_PORT $IF_RRQNET_REMOTE
fi
}

4
rrqnet-ifupdown.sh.8.adoc

@ -62,8 +62,8 @@ remotes for a single +rrqnet+ daemon are declared by using multiple
*rrqnet_options* _options_::
This IFACE option is used for declaring any additional +rrqnet+ daemon
settings ([-4] [-B n] [-T n] [-m mcast]). Refer to the +rrqnet+ man
page for the full specification.
settings ([-tpg] [-4] [-B n] [-T n] [-m mcast]). Refer to the +rrqnet+
man page for the full specification.
*rrqnet_log* _level_ _pathname_::

Loading…
Cancel
Save