X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/05adaa9794e41d02870a74a1ed7ba58cc59b9286..8ab2244c0d7a13a8349f9c5fc6aabe7f87c04497:/package/base-files/files/sbin/wifi?ds=sidebyside diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index d877c7398..2b4f1ce1c 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -14,7 +14,7 @@ find_net_config() {( include /lib/network scan_interfaces - config_get ifname "$vif" ifnamea + config_get ifname "$vif" ifname cfg="$(find_config "$ifname")" } @@ -78,17 +78,6 @@ start_net() {( setup_interface "$1" "$2" )} -config_get_bool() { - local _tmp - config_get "$1" "$2" "$3" - eval "_tmp=\$$1" - case "$_tmp" in - 1|on|enabled) eval "$1=1";; - 0|off|disabled) eval "$1=0";; - *) eval "$1=${4:-0}";; - esac -} - config_cb() { config_get TYPE "$CONFIG_SECTION" TYPE case "$TYPE" in