package: replace ifconfig-usage with ip

Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 46832
This commit is contained in:
Steven Barth
2015-09-08 17:44:24 +00:00
parent 579fe7f52a
commit e07959cade
7 changed files with 15 additions and 15 deletions

View File

@@ -486,7 +486,7 @@ mac80211_prepare_vif() {
# All interfaces must have unique mac addresses
# which can either be explicitly set in the device
# section, or automatically generated
ifconfig "$ifname" hw ether "$macaddr"
ip link set dev "$ifname" address "$macaddr"
fi
json_select ..
@@ -582,7 +582,7 @@ mac80211_setup_vif() {
json_get_vars mode
json_get_var vif_txpower txpower
ifconfig "$ifname" up || {
ip link set dev "$ifname" up || {
wireless_setup_vif_failed IFUP_ERROR
json_select ..
return
@@ -638,7 +638,7 @@ mac80211_interface_cleanup() {
local phy="$1"
for wdev in $(list_phy_interfaces "$phy"); do
ifconfig "$wdev" down 2>/dev/null
ip link set dev "$wdev" down 2>/dev/null
iw dev "$wdev" del
done
}