service/fw example: do not ruin $if[], use different name
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
ed72761843
commit
6b5abc9596
@ -89,9 +89,9 @@ echo; echo "* Configuring hardware"
|
|||||||
echo; echo "* Resetting address and routing info"
|
echo; echo "* Resetting address and routing info"
|
||||||
if $reset_all_netdevs; then
|
if $reset_all_netdevs; then
|
||||||
devs=`sed -n 's/ //g;s/:.*$//p' </proc/net/dev`
|
devs=`sed -n 's/ //g;s/:.*$//p' </proc/net/dev`
|
||||||
for if in $devs; do
|
for iface in $devs; do
|
||||||
doit ip a f dev "$if"
|
doit ip a f dev "$iface"
|
||||||
doit ip r f dev "$if" root 0/0
|
doit ip r f dev "$iface" root 0/0
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
doit ip a f dev lo
|
doit ip a f dev lo
|
||||||
|
Loading…
Reference in New Issue
Block a user