summaryrefslogtreecommitdiffstats
path: root/package/swconfig
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-09-16 14:23:01 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-09-16 14:23:01 +0000
commit9a624fb1b71225fcc7b3af900985a65124e290b7 (patch)
treecd6f4244d5230b58dcf13d5d4505a86eab5b6abd /package/swconfig
parent9fbe9e1ad0dc0df121c0c9d3354349202e6060b2 (diff)
[package] swconfig: clear ip address on the switch interface, this prevents duplicate assignments of 192.168.1.1 on the DIR-300 at least
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17597 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/swconfig')
-rw-r--r--package/swconfig/Makefile2
-rw-r--r--package/swconfig/files/switch.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/package/swconfig/Makefile b/package/swconfig/Makefile
index a3844c5f6..bec94a1ca 100644
--- a/package/swconfig/Makefile
+++ b/package/swconfig/Makefile
@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=swconfig
-PKG_RELEASE:=2
+PKG_RELEASE:=3
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/kernel.mk
diff --git a/package/swconfig/files/switch.sh b/package/swconfig/files/switch.sh
index d752b1383..7078b2e82 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
}