From: Sven Roederer Date: Wed, 25 Dec 2019 17:42:13 +0000 (+0100) Subject: netifd/config.sh: remove some bashism (usage of [[) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bc357aaa2b112b349f0349efe89d52aa57d5f582;p=openwrt%2Fstaging%2Fjow.git netifd/config.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/config/netifd/files/lib/network/config.sh b/package/network/config/netifd/files/lib/network/config.sh index 0ded45edc4..2a1aa65fe0 100755 --- a/package/network/config/netifd/files/lib/network/config.sh +++ b/package/network/config/netifd/files/lib/network/config.sh @@ -12,7 +12,7 @@ find_config() { json_load "$(ifstatus $interface)" json_get_var ifdev device json_get_var ifl3dev l3_device - if [[ "$device" = "$ifdev" ]] || [[ "$device" = "$ifl3dev" ]]; then + if [ "$device" = "$ifdev" ] || [ "$device" = "$ifl3dev" ]; then echo "$interface" exit 0 else