whitespace fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-11-06 04:10:43 +01:00
parent 6cf7f01256
commit 8fdf066323
2 changed files with 20 additions and 20 deletions

View File

@ -16,16 +16,16 @@ echo
prio=0 prio=0
i=0; while test "${if[$i]}"; do i=0; while test "${if[$i]}"; do
test x"${dns_prio[$i]}" != x"" \ test x"${dns_prio[$i]}" != x"" \
&& test "${dns_prio[$i]}" -gt "$prio" \ && test "${dns_prio[$i]}" -gt "$prio" \
&& prio="${dns_prio[$i]}" && prio="${dns_prio[$i]}"
let i++; done let i++; done
i=0; while test "${if[$i]}"; do i=0; while test "${if[$i]}"; do
for d in ${dns[$i]}; do for d in ${dns[$i]}; do
p="${dns_prio[$i]}" p="${dns_prio[$i]}"
test x"$p" == x"" && p=0 test x"$p" == x"" && p=0
test x"$p" == x"$prio" || continue test x"$p" == x"$prio" || continue
echo "nameserver $d" echo "nameserver $d"
done done
let i++; done let i++; done

View File

@ -49,8 +49,8 @@ rundir="/var/run/service/$service"
### ... Local Process... ### ... Local Process...
doit() { doit() {
echo "# $*" echo "# $*"
"$@" "$@"
} }
#exec >/dev/null #exec >/dev/null
@ -88,25 +88,25 @@ echo; echo "* Configuring hardware"
echo; echo "* Resetting address and routing info" echo; echo "* Resetting address and routing info"
doit ip a f dev lo doit ip a f dev lo
i=0; while test "${if[$i]}"; do i=0; while test "${if[$i]}"; do
doit ip a f dev "${if[$i]}" doit ip a f dev "${if[$i]}"
doit ip r f dev "${if[$i]}" root 0/0 doit ip r f dev "${if[$i]}" root 0/0
let i++; done let i++; done
echo; echo "* Configuring addresses" echo; echo "* Configuring addresses"
doit ip a a dev lo 127.0.0.1/8 scope host doit ip a a dev lo 127.0.0.1/8 scope host
doit ip a a dev lo ::1/128 scope host doit ip a a dev lo ::1/128 scope host
i=0; while test "${if[$i]}"; do i=0; while test "${if[$i]}"; do
if test "${ipmask[$i]}"; then if test "${ipmask[$i]}"; then
doit ip a a dev "${if[$i]}" "${ipmask[$i]}" brd + doit ip a a dev "${if[$i]}" "${ipmask[$i]}" brd +
doit ip l set dev "${if[$i]}" up doit ip l set dev "${if[$i]}" up
fi fi
let i++; done let i++; done
echo; echo "* Configuring routes" echo; echo "* Configuring routes"
i=0; while test "${if[$i]}"; do i=0; while test "${if[$i]}"; do
if test "${net[$i]}" && test "${gw[$i]}"; then if test "${net[$i]}" && test "${gw[$i]}"; then
doit ip r a "${net[$i]}" via "${gw[$i]}" doit ip r a "${net[$i]}" via "${gw[$i]}"
fi fi
let i++; done let i++; done
echo; echo "* Recreating /etc/* files reflecting new network configuration:" echo; echo "* Recreating /etc/* files reflecting new network configuration:"