From 8a51d0046eedcaa9418e222d37bca323c8dadfbb Mon Sep 17 00:00:00 2001 From: jow Date: Mon, 1 Feb 2010 00:32:46 +0000 Subject: [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 --- package/base-files/files/lib/network/config.sh | 4 ++++ 1 file changed, 4 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 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" -- cgit v1.2.3