aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/var_service/fw/etc/resolv.conf18
-rwxr-xr-xexamples/var_service/fw/run22
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
17prio=0 17prio=0
18i=0; while test "${if[$i]}"; do 18i=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]}"
22let i++; done 22let i++; done
23 23
24i=0; while test "${if[$i]}"; do 24i=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
31let i++; done 31let 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
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:"