aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/swconfig
diff options
context:
space:
mode:
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
}