adds the option to have no proto for a interface, usefull if the uci states need...
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 Aug 2008 11:17:40 +0000 (11:17 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 20 Aug 2008 11:17:40 +0000 (11:17 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12343 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/lib/network/config.sh

index 13e1980..52e50b1 100755 (executable)
@@ -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'" 
This page took 0.027367 seconds and 4 git commands to generate.