X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fnetwork%2Fconfig%2Fswconfig%2Ffiles%2Fswitch.sh;h=ba6924d9d21d16f134c078187e554de860b5f6cc;hb=e5c78c08f3eef98b19859d9ce5d4d408775beb05;hp=18d5fbd2c3d58f356e6f9ceec86ebc2caf38b757;hpb=4f2090ad48927532f42272c92c874cc370fc349b;p=openwrt-working-2016%2F.git diff --git a/package/network/config/swconfig/files/switch.sh b/package/network/config/swconfig/files/switch.sh index 18d5fbd2c3..ba6924d9d2 100644 --- a/package/network/config/swconfig/files/switch.sh +++ b/package/network/config/swconfig/files/switch.sh @@ -2,6 +2,7 @@ # Copyright (C) 2009 OpenWrt.org setup_switch_dev() { + local name config_get name "$1" name name="${name:-$1}" [ -d "/sys/class/net/$name" ] && ifconfig "$name" up