diff options
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 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:" |