6in4/6in4.sh: remove some bashism (usage of [[)

"[[" is a bash extension for test. As the ash-implementation is not
fully compatible we drop its usage.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
master
Sven Roederer 2019-12-25 18:43:45 +01:00 committed by Adrian Schmutzler
parent bc357aaa2b
commit bad59fd51b
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ proto_6in4_setup() {
[ -n "$ip6addr" ] && { [ -n "$ip6addr" ] && {
local local6="${ip6addr%%/*}" local local6="${ip6addr%%/*}"
local mask6="${ip6addr##*/}" local mask6="${ip6addr##*/}"
[[ "$local6" = "$mask6" ]] && mask6= [ "$local6" = "$mask6" ] && mask6=
proto_add_ipv6_address "$local6" "$mask6" proto_add_ipv6_address "$local6" "$mask6"
proto_add_ipv6_route "::" 0 "" "" "" "$local6/$mask6" proto_add_ipv6_route "::" 0 "" "" "" "$local6/$mask6"
} }