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

@@ -101,7 +101,7 @@ disable_broadcom() {
for dev in /sys/class/net/wds${device##wl}-* /sys/class/net/${device}-* /sys/class/net/${device}; do
if [ -e "$dev" ]; then
ifname=${dev##/sys/class/net/}
ifconfig "$ifname" down
ip link set dev "$ifname" down
unbridge "$ifname"
fi
done
@@ -372,8 +372,8 @@ enable_broadcom() {
local if_cmd="if_pre_up"
[ "$ifname" != "${ifname##${device}-}" ] && if_cmd="if_up"
append $if_cmd "macaddr=\$(wlc ifname '$ifname' cur_etheraddr)" ";$N"
append $if_cmd "ifconfig '$ifname' \${macaddr:+hw ether \$macaddr}" ";$N"
append if_up "ifconfig '$ifname' up" ";$N"
append $if_cmd "ip link set dev '$ifname' address \$macaddr" ";$N"
append if_up "ip link set dev '$ifname' up" ";$N"
local net_cfg="$(find_net_config "$vif")"
[ -z "$net_cfg" ] || {