aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Roederer <devel-sven@geroedel.de>2019-12-25 18:42:13 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-26 22:02:39 +0100
commitbc357aaa2b112b349f0349efe89d52aa57d5f582 (patch)
tree19ea0b8fc947afac39806e4a0f491ea0a9d3bef6
parenta20069e1af3977a34280e9ae4d388da5bae8f66f (diff)
downloadupstream-bc357aaa2b112b349f0349efe89d52aa57d5f582.tar.gz
upstream-bc357aaa2b112b349f0349efe89d52aa57d5f582.tar.bz2
upstream-bc357aaa2b112b349f0349efe89d52aa57d5f582.zip
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 <devel-sven@geroedel.de>
-rwxr-xr-xpackage/network/config/netifd/files/lib/network/config.sh2
1 files changed, 1 insertions, 1 deletions
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