6in4/6in4.sh: remove some bashism (usage of [[)
authorSven Roederer <devel-sven@geroedel.de>
Wed, 25 Dec 2019 17:43:45 +0000 (18:43 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 26 Jan 2020 21:02:51 +0000 (22:02 +0100)
"[[" 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>
package/network/ipv6/6in4/files/6in4.sh

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