aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/swconfig
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2015-09-08 17:44:24 +0000
committerSteven Barth <cyrus@openwrt.org>2015-09-08 17:44:24 +0000
commite07959cade0eba1c85a76d76a1a673363c9f55fb (patch)
treea67502d0f73e9016128f70254b142e3326663423 /package/network/config/swconfig
parent579fe7f52ab6c6d6ec6087901f8e5514cea4b4e8 (diff)
downloadupstream-e07959cade0eba1c85a76d76a1a673363c9f55fb.tar.gz
upstream-e07959cade0eba1c85a76d76a1a673363c9f55fb.tar.bz2
upstream-e07959cade0eba1c85a76d76a1a673363c9f55fb.zip
package: replace ifconfig-usage with ip
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46832
Diffstat (limited to 'package/network/config/swconfig')
-rw-r--r--package/network/config/swconfig/files/switch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/swconfig/files/switch.sh b/package/network/config/swconfig/files/switch.sh
index ba6924d9d2..74d259073f 100644
--- a/package/network/config/swconfig/files/switch.sh
+++ b/package/network/config/swconfig/files/switch.sh
@@ -5,7 +5,7 @@ setup_switch_dev() {
local name
config_get name "$1" name
name="${name:-$1}"
- [ -d "/sys/class/net/$name" ] && ifconfig "$name" up
+ [ -d "/sys/class/net/$name" ] && ip link set dev "$name" up
swconfig dev "$name" load network
}