From: Sven Roederer Date: Wed, 25 Dec 2019 17:43:45 +0000 (+0100) Subject: 6in4/6in4.sh: remove some bashism (usage of [[) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bad59fd51bbcb9e37119ef05ea6f8970db26ce85;p=openwrt%2Fstaging%2Fnoltari.git 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 --- diff --git a/package/network/ipv6/6in4/files/6in4.sh b/package/network/ipv6/6in4/files/6in4.sh index 0f631b78ba..5b5c7b36af 100755 --- a/package/network/ipv6/6in4/files/6in4.sh +++ b/package/network/ipv6/6in4/files/6in4.sh @@ -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" }