add 1 second delay for natsemi ifup (sometimes won't come up otherwise)
[openwrt.git] / package / base-files / default / etc / hotplug.d / net / 10-net
index 72146a1..176b937 100644 (file)
@@ -1,11 +1,11 @@
 # Copyright (C) 2006 OpenWrt.org
 
-include network
+include /lib/network
 
 addif() {
        scan_interfaces
        setup_interface "$INTERFACE"
-       
+
        # find all vlan configurations for this interface and set them up as well
        for ifc in $interfaces; do
                config_get iftype "$ifc" type
@@ -23,6 +23,9 @@ addif() {
 
 case "$ACTION" in
        add|register)
+               case "$PHYSDEVDRIVER" in
+                       natsemi) sleep 1;;
+               esac
                addif
        ;;
 esac
This page took 0.021105 seconds and 4 git commands to generate.