Fix typo which broke use of arping

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2426 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-07-27 22:41:52 +00:00
parent 5f58eac0f7
commit 5f37ce46bf

View File

@ -1090,7 +1090,7 @@ verify_mark() # $1 = value to test
# #
setup_providers() setup_providers()
{ {
local table number mark duplicate interface gateway options provider address copy route loose addresses rulenum pref local table number mark duplicate interface gateway options provider address copy route loose addresses rulenum pref echobin=$(mywhich echo)
copy_table() { copy_table() {
run_ip route show table $duplicate | while read net route; do run_ip route show table $duplicate | while read net route; do
@ -1252,7 +1252,7 @@ EOF
for table in $PROVIDERS; do for table in $PROVIDERS; do
eval number=\$${table}_number eval number=\$${table}_number
/bin/echo -e "$number\t$table" >> /etc/iproute2/rt_tables ${echobin:-echo} -e "$number\t$table" >> /etc/iproute2/rt_tables
done done
save_command "cat > /etc/iproute2/rt_tables << __EOF__" save_command "cat > /etc/iproute2/rt_tables << __EOF__"
@ -6627,7 +6627,7 @@ add_ip_aliases()
ensure_and_save_command ip addr add ${external}${val} dev $interface $label ensure_and_save_command ip addr add ${external}${val} dev $interface $label
fi fi
[ -n "$arping"] && run_and_save_command qt $arping -U -c 2 -I $interface $external [ -n "$arping" ] && run_and_save_command qt $arping -U -c 2 -I $interface $external
echo "$external $interface" >> /var/lib/shorewall/nat echo "$external $interface" >> /var/lib/shorewall/nat
[ -n "$label" ] && label="with $label" [ -n "$label" ] && label="with $label"