From b75288df95f64cb85530541d23365f9f270ef758 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 16 Sep 2009 14:23:01 +0000 Subject: [PATCH] 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 --- package/swconfig/Makefile | 2 +- package/swconfig/files/switch.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/swconfig/Makefile b/package/swconfig/Makefile index a3844c5f635..bec94a1ca09 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 d752b1383d8..7078b2e823e 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 }