diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-07-30 22:29:10 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-07-30 22:29:10 +0200 |
commit | 6b5abc95969caf270d269ae640bb64e6bf8a7996 (patch) | |
tree | 715dc4792d9eae3979d925ebc5913a7f303026ff | |
parent | ed72761843945ff7efc5a8ba3095a0f82e8f3e45 (diff) | |
download | busybox-w32-6b5abc95969caf270d269ae640bb64e6bf8a7996.tar.gz busybox-w32-6b5abc95969caf270d269ae640bb64e6bf8a7996.tar.bz2 busybox-w32-6b5abc95969caf270d269ae640bb64e6bf8a7996.zip |
service/fw example: do not ruin $if[], use different name
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | examples/var_service/fw/run | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/var_service/fw/run b/examples/var_service/fw/run index 871a70545..1fd71cc01 100755 --- a/examples/var_service/fw/run +++ b/examples/var_service/fw/run | |||
@@ -89,9 +89,9 @@ echo; echo "* Configuring hardware" | |||
89 | echo; echo "* Resetting address and routing info" | 89 | echo; echo "* Resetting address and routing info" |
90 | if $reset_all_netdevs; then | 90 | if $reset_all_netdevs; then |
91 | devs=`sed -n 's/ //g;s/:.*$//p' </proc/net/dev` | 91 | devs=`sed -n 's/ //g;s/:.*$//p' </proc/net/dev` |
92 | for if in $devs; do | 92 | for iface in $devs; do |
93 | doit ip a f dev "$if" | 93 | doit ip a f dev "$iface" |
94 | doit ip r f dev "$if" root 0/0 | 94 | doit ip r f dev "$iface" root 0/0 |
95 | done | 95 | done |
96 | else | 96 | else |
97 | doit ip a f dev lo | 97 | doit ip a f dev lo |