From bc357aaa2b112b349f0349efe89d52aa57d5f582 Mon Sep 17 00:00:00 2001 From: Sven Roederer Date: Wed, 25 Dec 2019 18:42:13 +0100 Subject: [PATCH] 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 --- package/network/config/netifd/files/lib/network/config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2