From ef34750d84e32dd7fea46134ce353e4a73993229 Mon Sep 17 00:00:00 2001 From: jow Date: Fri, 12 Feb 2010 02:06:57 +0000 Subject: [package] base-files: revert dhcp state information on ifdown and restore pre-r19530 behaviour in udhcp default.script git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19597 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/lib/network/config.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package/base-files/files/lib/network') diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index 12b08a29f..b7d7b259a 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -327,6 +327,11 @@ setup_interface() { } } +stop_interface_dhcp() { + local config="$1" + uci -P /var/state revert "network.$config" +} + unbridge() { local dev="$1" local brdev -- cgit v1.2.3