SHA256
1
0
forked from pool/dhcp

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:
Marius Tomaschewski 2010-11-30 21:53:03 +00:00 committed by Git OBS Bridge
parent 77f196bc3a
commit 73d4520f2c
3 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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"