mirror of https://github.com/hak5/openwrt.git
odhcp6c: Fix white space errors
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> SVN-Revision: 45585lede-17.01
parent
954004eccc
commit
64aa0929b9
|
@ -34,10 +34,10 @@ setup_interface () {
|
||||||
|
|
||||||
for prefix in $PREFIXES; do
|
for prefix in $PREFIXES; do
|
||||||
proto_add_ipv6_prefix "$prefix"
|
proto_add_ipv6_prefix "$prefix"
|
||||||
local entry="${prefix#*/}"
|
local entry="${prefix#*/}"
|
||||||
entry="${entry#*,}"
|
entry="${entry#*,}"
|
||||||
entry="${entry#*,}"
|
entry="${entry#*,}"
|
||||||
local valid="${entry%%,*}"
|
local valid="${entry%%,*}"
|
||||||
|
|
||||||
if [ -z "$RA_ADDRESSES" -a -z "$RA_ROUTES" -a \
|
if [ -z "$RA_ADDRESSES" -a -z "$RA_ROUTES" -a \
|
||||||
-z "$RA_DNS" -a "$FAKE_ROUTES" = 1 ]; then
|
-z "$RA_DNS" -a "$FAKE_ROUTES" = 1 ]; then
|
||||||
|
@ -69,10 +69,10 @@ setup_interface () {
|
||||||
|
|
||||||
proto_add_ipv6_address "$addr" "$mask" "$preferred" "$valid" 1
|
proto_add_ipv6_address "$addr" "$mask" "$preferred" "$valid" 1
|
||||||
|
|
||||||
if [ -z "$RA_ADDRESSES" -a -z "$RA_ROUTES" -a \
|
if [ -z "$RA_ADDRESSES" -a -z "$RA_ROUTES" -a \
|
||||||
-z "$RA_DNS" -a "$FAKE_ROUTES" = 1 ]; then
|
-z "$RA_DNS" -a "$FAKE_ROUTES" = 1 ]; then
|
||||||
RA_ROUTES="::/0,$SERVER,$valid,4096"
|
RA_ROUTES="::/0,$SERVER,$valid,4096"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
for entry in $RA_ROUTES; do
|
for entry in $RA_ROUTES; do
|
||||||
|
|
Loading…
Reference in New Issue