diff options
author | Sven Roederer <devel-sven@geroedel.de> | 2019-12-25 18:46:14 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-01-26 22:03:00 +0100 |
commit | 3519bf4976b41ca8071faaa0f13c48dbf8edff0b (patch) | |
tree | 99fee488c0760510af07cdbb11f04ead9345f224 /package/network | |
parent | bad59fd51bbcb9e37119ef05ea6f8970db26ce85 (diff) | |
download | openwrt-3519bf4976b41ca8071faaa0f13c48dbf8edff0b.tar.gz openwrt-3519bf4976b41ca8071faaa0f13c48dbf8edff0b.tar.bz2 openwrt-3519bf4976b41ca8071faaa0f13c48dbf8edff0b.zip |
hostapd: remove some bashisms
"[[" 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>
[remove shebang, slightly facelift commit title/message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/hostapd/files/hostapd.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index ab86638e11..189760157e 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -731,7 +731,7 @@ wpa_supplicant_prepare_interface() { _w_mode="$mode" - [[ "$mode" = adhoc ]] && { + [ "$mode" = adhoc ] && { ap_scan="ap_scan=2" } @@ -810,7 +810,7 @@ wpa_supplicant_add_network() { local scan_ssid="scan_ssid=1" local freq wpa_key_mgmt - [[ "$_w_mode" = "adhoc" ]] && { + [ "$_w_mode" = "adhoc" ] && { append network_data "mode=1" "$N$T" [ -n "$freq" ] && wpa_supplicant_set_fixed_freq "$freq" "$htmode" [ "$noscan" = "1" ] && append network_data "noscan=1" "$N$T" @@ -820,7 +820,7 @@ wpa_supplicant_add_network() { [ "$_w_driver" = "nl80211" ] || append wpa_key_mgmt "WPA-NONE" } - [[ "$_w_mode" = "mesh" ]] && { + [ "$_w_mode" = "mesh" ] && { json_get_vars mesh_id mesh_fwding mesh_rssi_threshold [ -n "$mesh_id" ] && ssid="${mesh_id}" |