From 74fc7d960274f9c94522978fec886eff7307ad64 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 8 Sep 2015 17:44:24 +0000 Subject: package: replace ifconfig-usage with ip Signed-off-by: Steven Barth git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46832 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/kernel/hostap-driver/files/lib/wifi/hostap.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package/kernel/hostap-driver/files/lib/wifi') 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 -- cgit v1.2.3