summaryrefslogtreecommitdiff
path: root/package/swconfig/files/switch.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-09-16 14:23:01 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-09-16 14:23:01 +0000
commitb75288df95f64cb85530541d23365f9f270ef758 (patch)
tree60b933ab03a37be182c24259461c69811242c768 /package/swconfig/files/switch.sh
parent2f921cb48d47a3aeb7e33773b6b0de0a71b36947 (diff)
downloadmtk-20170518-b75288df95f64cb85530541d23365f9f270ef758.zip
mtk-20170518-b75288df95f64cb85530541d23365f9f270ef758.tar.gz
mtk-20170518-b75288df95f64cb85530541d23365f9f270ef758.tar.bz2
swconfig: clear ip address on the switch interface, this prevents duplicate assignments of 192.168.1.1 on the DIR-300 at least
SVN-Revision: 17597
Diffstat (limited to 'package/swconfig/files/switch.sh')
-rw-r--r--package/swconfig/files/switch.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/swconfig/files/switch.sh b/package/swconfig/files/switch.sh
index d752b13..7078b2e 100644
--- a/package/swconfig/files/switch.sh
+++ b/package/swconfig/files/switch.sh
@@ -2,6 +2,7 @@
# Copyright (C) 2009 OpenWrt.org
setup_switch_dev() {
+ ifconfig "$1" 0.0.0.0
swconfig dev "$1" load network
}