diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-06 04:10:43 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-06 04:10:43 +0100 |
commit | 8fdf06632326f2994a4faa4b5f506f4b5f3d7571 (patch) | |
tree | 9d41a57f492be8e18d21301d5e61be206ed2b2ca | |
parent | 6cf7f01256c39677a0a5561ebca60e8def9d6d7e (diff) | |
download | busybox-w32-8fdf06632326f2994a4faa4b5f506f4b5f3d7571.tar.gz busybox-w32-8fdf06632326f2994a4faa4b5f506f4b5f3d7571.tar.bz2 busybox-w32-8fdf06632326f2994a4faa4b5f506f4b5f3d7571.zip |
whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | examples/var_service/fw/etc/resolv.conf | 18 | ||||
-rwxr-xr-x | examples/var_service/fw/run | 22 |
2 files changed, 20 insertions, 20 deletions
diff --git a/examples/var_service/fw/etc/resolv.conf b/examples/var_service/fw/etc/resolv.conf index 3f37b86f5..6561987de 100644 --- a/examples/var_service/fw/etc/resolv.conf +++ b/examples/var_service/fw/etc/resolv.conf | |||
@@ -16,16 +16,16 @@ echo | |||
16 | 16 | ||
17 | prio=0 | 17 | prio=0 |
18 | i=0; while test "${if[$i]}"; do | 18 | i=0; while test "${if[$i]}"; do |
19 | test x"${dns_prio[$i]}" != x"" \ | 19 | test x"${dns_prio[$i]}" != x"" \ |
20 | && test "${dns_prio[$i]}" -gt "$prio" \ | 20 | && test "${dns_prio[$i]}" -gt "$prio" \ |
21 | && prio="${dns_prio[$i]}" | 21 | && prio="${dns_prio[$i]}" |
22 | let i++; done | 22 | let i++; done |
23 | 23 | ||
24 | i=0; while test "${if[$i]}"; do | 24 | i=0; while test "${if[$i]}"; do |
25 | for d in ${dns[$i]}; do | 25 | for d in ${dns[$i]}; do |
26 | p="${dns_prio[$i]}" | 26 | p="${dns_prio[$i]}" |
27 | test x"$p" == x"" && p=0 | 27 | test x"$p" == x"" && p=0 |
28 | test x"$p" == x"$prio" || continue | 28 | test x"$p" == x"$prio" || continue |
29 | echo "nameserver $d" | 29 | echo "nameserver $d" |
30 | done | 30 | done |
31 | let i++; done | 31 | let i++; done |
diff --git a/examples/var_service/fw/run b/examples/var_service/fw/run index f02f53dc1..b8c028a99 100755 --- a/examples/var_service/fw/run +++ b/examples/var_service/fw/run | |||
@@ -49,8 +49,8 @@ rundir="/var/run/service/$service" | |||
49 | ### ... Local Process... | 49 | ### ... Local Process... |
50 | 50 | ||
51 | doit() { | 51 | doit() { |
52 | echo "# $*" | 52 | echo "# $*" |
53 | "$@" | 53 | "$@" |
54 | } | 54 | } |
55 | 55 | ||
56 | #exec >/dev/null | 56 | #exec >/dev/null |
@@ -88,25 +88,25 @@ echo; echo "* Configuring hardware" | |||
88 | echo; echo "* Resetting address and routing info" | 88 | echo; echo "* Resetting address and routing info" |
89 | doit ip a f dev lo | 89 | doit ip a f dev lo |
90 | i=0; while test "${if[$i]}"; do | 90 | i=0; while test "${if[$i]}"; do |
91 | doit ip a f dev "${if[$i]}" | 91 | doit ip a f dev "${if[$i]}" |
92 | doit ip r f dev "${if[$i]}" root 0/0 | 92 | doit ip r f dev "${if[$i]}" root 0/0 |
93 | let i++; done | 93 | let i++; done |
94 | 94 | ||
95 | echo; echo "* Configuring addresses" | 95 | echo; echo "* Configuring addresses" |
96 | doit ip a a dev lo 127.0.0.1/8 scope host | 96 | doit ip a a dev lo 127.0.0.1/8 scope host |
97 | doit ip a a dev lo ::1/128 scope host | 97 | doit ip a a dev lo ::1/128 scope host |
98 | i=0; while test "${if[$i]}"; do | 98 | i=0; while test "${if[$i]}"; do |
99 | if test "${ipmask[$i]}"; then | 99 | if test "${ipmask[$i]}"; then |
100 | doit ip a a dev "${if[$i]}" "${ipmask[$i]}" brd + | 100 | doit ip a a dev "${if[$i]}" "${ipmask[$i]}" brd + |
101 | doit ip l set dev "${if[$i]}" up | 101 | doit ip l set dev "${if[$i]}" up |
102 | fi | 102 | fi |
103 | let i++; done | 103 | let i++; done |
104 | 104 | ||
105 | echo; echo "* Configuring routes" | 105 | echo; echo "* Configuring routes" |
106 | i=0; while test "${if[$i]}"; do | 106 | i=0; while test "${if[$i]}"; do |
107 | if test "${net[$i]}" && test "${gw[$i]}"; then | 107 | if test "${net[$i]}" && test "${gw[$i]}"; then |
108 | doit ip r a "${net[$i]}" via "${gw[$i]}" | 108 | doit ip r a "${net[$i]}" via "${gw[$i]}" |
109 | fi | 109 | fi |
110 | let i++; done | 110 | let i++; done |
111 | 111 | ||
112 | echo; echo "* Recreating /etc/* files reflecting new network configuration:" | 112 | echo; echo "* Recreating /etc/* files reflecting new network configuration:" |