mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
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>
This commit is contained in:
parent
a20069e1af
commit
bc357aaa2b
@ -12,7 +12,7 @@ find_config() {
|
|||||||
json_load "$(ifstatus $interface)"
|
json_load "$(ifstatus $interface)"
|
||||||
json_get_var ifdev device
|
json_get_var ifdev device
|
||||||
json_get_var ifl3dev l3_device
|
json_get_var ifl3dev l3_device
|
||||||
if [[ "$device" = "$ifdev" ]] || [[ "$device" = "$ifl3dev" ]]; then
|
if [ "$device" = "$ifdev" ] || [ "$device" = "$ifl3dev" ]; then
|
||||||
echo "$interface"
|
echo "$interface"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user