Added missed DHCRELAY6_LOWER_INTERFACES_ARGS variable rename
Initialized DHCRELAY[6_LOWER,6_UPPER]_INTERFACES_ARGS variables OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=46
This commit is contained in:
parent
77f196bc3a
commit
73d4520f2c
@ -379,6 +379,10 @@ exit 0
|
||||
%insserv_cleanup
|
||||
|
||||
%post relay
|
||||
%{rename_sysconfig_variable -f etc/sysconfig/dhcrelay
|
||||
DHCRELAY6_LOWER_INTERFACES_ARGS DHCRELAY6_LOWER_INTERFACES}
|
||||
%{rename_sysconfig_variable -f etc/sysconfig/dhcrelay
|
||||
DHCRELAY6_UPPER_INTERFACES_ARGS DHCRELAY6_UPPER_INTERFACES}
|
||||
%{fillup_and_insserv -n dhcrelay dhcrelay dhcrelay6}
|
||||
|
||||
%preun relay
|
||||
|
@ -93,6 +93,7 @@ case "$1" in
|
||||
exit 6;
|
||||
fi
|
||||
|
||||
DHCRELAY_INTERFACES_ARGS=''
|
||||
for i in $DHCRELAY_INTERFACES ; do
|
||||
DHCRELAY_INTERFACES_ARGS="$DHCRELAY_INTERFACES_ARGS -i $i"
|
||||
done
|
||||
|
@ -84,10 +84,12 @@ case "$1" in
|
||||
echo -n "... already running"; rc_status -v; exit 0;
|
||||
}
|
||||
|
||||
DHCRELAY6_LOWER_INTERFACES_ARGS=''
|
||||
for l in $DHCRELAY6_LOWER_INTERFACES ; do
|
||||
test "x$l" = x -o "x$l" = "x-l" && continue
|
||||
DHCRELAY6_LOWER_INTERFACES_ARGS="$DHCRELAY6_LOWER_INTERFACES_ARGS -l $l"
|
||||
done
|
||||
DHCRELAY6_UPPER_INTERFACES_ARGS=''
|
||||
for u in $DHCRELAY6_UPPER_INTERFACES ; do
|
||||
test "x$u" = x -o "x$u" = "x-u" && continue
|
||||
DHCRELAY6_UPPER_INTERFACES_ARGS="$DHCRELAY6_UPPER_INTERFACES_ARGS -u $u"
|
||||
|
Loading…
Reference in New Issue
Block a user