diff options
author | Steven Barth <cyrus@openwrt.org> | 2015-09-08 17:44:24 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2015-09-08 17:44:24 +0000 |
commit | e07959cade0eba1c85a76d76a1a673363c9f55fb (patch) | |
tree | a67502d0f73e9016128f70254b142e3326663423 /package/kernel/hostap-driver/files/lib/wifi/hostap.sh | |
parent | 579fe7f52ab6c6d6ec6087901f8e5514cea4b4e8 (diff) | |
download | master-31e0f0ae-e07959cade0eba1c85a76d76a1a673363c9f55fb.tar.gz master-31e0f0ae-e07959cade0eba1c85a76d76a1a673363c9f55fb.tar.bz2 master-31e0f0ae-e07959cade0eba1c85a76d76a1a673363c9f55fb.zip |
package: replace ifconfig-usage with ip
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46832
Diffstat (limited to 'package/kernel/hostap-driver/files/lib/wifi/hostap.sh')
-rwxr-xr-x | package/kernel/hostap-driver/files/lib/wifi/hostap.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/kernel/hostap-driver/files/lib/wifi/hostap.sh b/package/kernel/hostap-driver/files/lib/wifi/hostap.sh index 62d2e7e472..e35b76c0fd 100755 --- a/package/kernel/hostap-driver/files/lib/wifi/hostap.sh +++ b/package/kernel/hostap-driver/files/lib/wifi/hostap.sh @@ -78,7 +78,7 @@ disable_prism2() ( set $line [ -f "/var/run/wifi-${1}.pid" ] && kill "$(cat "/var/run/wifi-${1}.pid")" - ifconfig "$1" down + ip link set dev "$1" down unbridge "$1" iwpriv "$phy" wds_del "$2" done @@ -204,7 +204,7 @@ enable_prism2() { hostapd_setup_vif "$vif" hostap || { echo "enable_prism2($device): Failed to set up hostapd for interface $ifname" >&2 # make sure this wifi interface won't accidentally stay open without encryption - ifconfig "$ifname" down + ip link set dev "$ifname" down continue } fi @@ -213,7 +213,7 @@ enable_prism2() { if eval "type wpa_supplicant_setup_vif" 2>/dev/null >/dev/null; then wpa_supplicant_setup_vif "$vif" wext || { echo "enable_prism2($device): Failed to set up wpa_supplicant for interface $ifname" >&2 - ifconfig "$ifname" down + ip link set dev "$ifname" down continue } fi |