aboutsummaryrefslogtreecommitdiff
path: root/examples/var_service/fw/run
diff options
context:
space:
mode:
Diffstat (limited to 'examples/var_service/fw/run')
-rwxr-xr-xexamples/var_service/fw/run22
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
51doit() { 51doit() {
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"
88echo; echo "* Resetting address and routing info" 88echo; echo "* Resetting address and routing info"
89doit ip a f dev lo 89doit ip a f dev lo
90i=0; while test "${if[$i]}"; do 90i=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
93let i++; done 93let i++; done
94 94
95echo; echo "* Configuring addresses" 95echo; echo "* Configuring addresses"
96doit ip a a dev lo 127.0.0.1/8 scope host 96doit ip a a dev lo 127.0.0.1/8 scope host
97doit ip a a dev lo ::1/128 scope host 97doit ip a a dev lo ::1/128 scope host
98i=0; while test "${if[$i]}"; do 98i=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
103let i++; done 103let i++; done
104 104
105echo; echo "* Configuring routes" 105echo; echo "* Configuring routes"
106i=0; while test "${if[$i]}"; do 106i=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
110let i++; done 110let i++; done
111 111
112echo; echo "* Recreating /etc/* files reflecting new network configuration:" 112echo; echo "* Recreating /etc/* files reflecting new network configuration:"