diff options
author | Denys Vlasenko | 2009-11-06 04:10:43 +0100 |
---|---|---|
committer | Denys Vlasenko | 2009-11-06 04:10:43 +0100 |
commit | 8fdf06632326f2994a4faa4b5f506f4b5f3d7571 (patch) | |
tree | 9d41a57f492be8e18d21301d5e61be206ed2b2ca /examples/var_service/fw/run | |
parent | 6cf7f01256c39677a0a5561ebca60e8def9d6d7e (diff) | |
download | busybox-8fdf06632326f2994a4faa4b5f506f4b5f3d7571.zip busybox-8fdf06632326f2994a4faa4b5f506f4b5f3d7571.tar.gz |
whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/var_service/fw/run')
-rwxr-xr-x | examples/var_service/fw/run | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/var_service/fw/run b/examples/var_service/fw/run index f02f53d..b8c028a 100755 --- a/examples/var_service/fw/run +++ b/examples/var_service/fw/run @@ -49,8 +49,8 @@ rundir="/var/run/service/$service" ### ... Local Process... doit() { - echo "# $*" - "$@" + echo "# $*" + "$@" } #exec >/dev/null @@ -88,25 +88,25 @@ echo; echo "* Configuring hardware" echo; echo "* Resetting address and routing info" doit ip a f dev lo i=0; while test "${if[$i]}"; do - doit ip a f dev "${if[$i]}" - doit ip r f dev "${if[$i]}" root 0/0 + doit ip a f dev "${if[$i]}" + doit ip r f dev "${if[$i]}" root 0/0 let i++; done echo; echo "* Configuring addresses" doit ip a a dev lo 127.0.0.1/8 scope host doit ip a a dev lo ::1/128 scope host i=0; while test "${if[$i]}"; do - if test "${ipmask[$i]}"; then - doit ip a a dev "${if[$i]}" "${ipmask[$i]}" brd + - doit ip l set dev "${if[$i]}" up - fi + if test "${ipmask[$i]}"; then + doit ip a a dev "${if[$i]}" "${ipmask[$i]}" brd + + doit ip l set dev "${if[$i]}" up + fi let i++; done echo; echo "* Configuring routes" i=0; while test "${if[$i]}"; do - if test "${net[$i]}" && test "${gw[$i]}"; then - doit ip r a "${net[$i]}" via "${gw[$i]}" - fi + if test "${net[$i]}" && test "${gw[$i]}"; then + doit ip r a "${net[$i]}" via "${gw[$i]}" + fi let i++; done echo; echo "* Recreating /etc/* files reflecting new network configuration:" |