summaryrefslogtreecommitdiff
path: root/package/base-files/files/lib/network/config.sh
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-01 00:32:46 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-01 00:32:46 +0000
commit8a51d0046eedcaa9418e222d37bca323c8dadfbb (patch)
treefd81d85e0fa1de1b2b06e713e3c175c10ef5edc2 /package/base-files/files/lib/network/config.sh
parent90b4fa219447dc710b81c7b35706176c83fb4dbb (diff)
[package] base-files: preinit: get rid of /dev/null redirections and use grep -q where applicable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19478 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/network/config.sh')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index 12b08a29ff..6337643779 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -161,6 +161,10 @@ setup_interface_none() {
env -i ACTION="ifup" INTERFACE="$2" DEVICE="$1" PROTO=none /sbin/hotplug-call "iface" &
}
+stop_interface_none() {
+ env -i ACTION="ifdown" INTERFACE="$2" DEVICE="$1" PROTO=none /sbin/hotplug-call "iface" &
+}
+
setup_interface_static() {
local iface="$1"
local config="$2"