aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2008-08-20 11:17:40 +0000
committerJohn Crispin <blogic@openwrt.org>2008-08-20 11:17:40 +0000
commitc7e9e064b1423d63b96c9e1b9d53e385fa1a7e97 (patch)
tree676b0bca358aa92a8e17dfb6a42a30ebd8e2b5c1
parent305cd55644f15842dee2116a306baf032090976e (diff)
downloadmaster-187ad058-c7e9e064b1423d63b96c9e1b9d53e385fa1a7e97.tar.gz
master-187ad058-c7e9e064b1423d63b96c9e1b9d53e385fa1a7e97.tar.bz2
master-187ad058-c7e9e064b1423d63b96c9e1b9d53e385fa1a7e97.zip
adds the option to have no proto for a interface, usefull if the uci states need to be set, but interface bring up is handled somewhere else
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12343 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh
index 13e1980d9c..52e50b17ec 100755
--- a/package/base-files/files/lib/network/config.sh
+++ b/package/base-files/files/lib/network/config.sh
@@ -142,6 +142,10 @@ set_interface_ifname() {
uci_set_state network "$config" device "$device"
}
+setup_interface_none() {
+ env -i ACTION="ifup" INTERFACE="$config" DEVICE="$iface" PROTO=none /sbin/hotplug-call "iface" &
+}
+
setup_interface_static() {
local iface="$1"
local config="$2"
@@ -259,6 +263,9 @@ setup_interface() {
lock -u "/var/lock/dhcp-$iface"
fi
;;
+ none)
+ setup_interface_none "$iface" "$config"
+ ;;
*)
if ( eval "type setup_interface_$proto" ) >/dev/null 2>/dev/null; then
eval "setup_interface_$proto '$iface' '$config' '$proto'"