forked from extern/shorewall_code
Merge branch '4.4.8' of ssh://shorewall.git.sourceforge.net/gitroot/shorewall/shorewall into 4.4.8
This commit is contained in:
commit
8547b735f7
@ -431,7 +431,7 @@ find_first_interface_address() # $1 = interface
|
||||
#
|
||||
# get the line of output containing the first IP address
|
||||
#
|
||||
addr=$($IP -f inet addr show $1 2> /dev/null | grep 'inet .* global' | head -n1)
|
||||
addr=$(${IP:-ip} -f inet addr show $1 2> /dev/null | grep 'inet .* global' | head -n1)
|
||||
#
|
||||
# If there wasn't one, bail out now
|
||||
#
|
||||
@ -448,7 +448,7 @@ find_first_interface_address_if_any() # $1 = interface
|
||||
#
|
||||
# get the line of output containing the first IP address
|
||||
#
|
||||
addr=$($IP -f inet addr show $1 2> /dev/null | grep 'inet .* global' | head -n1)
|
||||
addr=$(${IP:-ip} -f inet addr show $1 2> /dev/null | grep 'inet .* global' | head -n1)
|
||||
#
|
||||
# Strip off the trailing VLSM mask (or the peer IP in case of a P-t-P link)
|
||||
# along with everything else on the line
|
||||
|
@ -39,8 +39,6 @@ get_config() {
|
||||
ensure_config_path
|
||||
|
||||
if [ "$1" = Yes ]; then
|
||||
[ -n "${IP:=ip}" ]
|
||||
|
||||
params=$(find_file params)
|
||||
|
||||
if [ -f $params ]; then
|
||||
|
@ -375,7 +375,7 @@ find_first_interface_address() # $1 = interface
|
||||
#
|
||||
# get the line of output containing the first IP address
|
||||
#
|
||||
addr=$($IP -f inet6 addr show $1 2> /dev/null | grep 'inet6 .* global' | head -n1)
|
||||
addr=$(${IP:-ip} -f inet6 addr show $1 2> /dev/null | grep 'inet6 .* global' | head -n1)
|
||||
#
|
||||
# If there wasn't one, bail out now
|
||||
#
|
||||
@ -392,7 +392,7 @@ find_first_interface_address_if_any() # $1 = interface
|
||||
#
|
||||
# get the line of output containing the first IP address
|
||||
#
|
||||
addr=$($IP -f inet6 addr show $1 2> /dev/null | grep 'inet6 2.* global' | head -n1)
|
||||
addr=$(${IP:-ip} -f inet6 addr show $1 2> /dev/null | grep 'inet6 2.* global' | head -n1)
|
||||
#
|
||||
# Strip off the trailing VLSM mask (or the peer IP in case of a P-t-P link)
|
||||
# along with everything else on the line
|
||||
|
@ -39,8 +39,6 @@ get_config() {
|
||||
ensure_config_path
|
||||
|
||||
if [ "$1" = Yes ]; then
|
||||
[ -n "${IP:=ip}" ]
|
||||
|
||||
params=$(find_file params)
|
||||
|
||||
if [ -f $params ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user