summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2016-07-30 22:29:10 +0200
committerDenys Vlasenko2016-07-30 22:29:10 +0200
commit6b5abc95969caf270d269ae640bb64e6bf8a7996 (patch)
tree715dc4792d9eae3979d925ebc5913a7f303026ff
parented72761843945ff7efc5a8ba3095a0f82e8f3e45 (diff)
downloadbusybox-6b5abc95969caf270d269ae640bb64e6bf8a7996.zip
busybox-6b5abc95969caf270d269ae640bb64e6bf8a7996.tar.gz
service/fw example: do not ruin $if[], use different name
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-xexamples/var_service/fw/run6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/var_service/fw/run b/examples/var_service/fw/run
index 871a705..1fd71cc 100755
--- a/examples/var_service/fw/run
+++ b/examples/var_service/fw/run
@@ -89,9 +89,9 @@ echo; echo "* Configuring hardware"
echo; echo "* Resetting address and routing info"
if $reset_all_netdevs; then
devs=`sed -n 's/ //g;s/:.*$//p' </proc/net/dev`
- for if in $devs; do
- doit ip a f dev "$if"
- doit ip r f dev "$if" root 0/0
+ for iface in $devs; do
+ doit ip a f dev "$iface"
+ doit ip r f dev "$iface" root 0/0
done
else
doit ip a f dev lo