more reliable fix for handling ppp
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 25 Feb 2007 13:45:45 +0000 (13:45 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 25 Feb 2007 13:45:45 +0000 (13:45 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6356 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/hotplug.d/net/10-net
package/ppp/files/ppp.sh

index 9b72338ce88ea51b34629667ace3b95f701d22c1..77eb6da9d4352a27abb400471e21f29efb97c970 100644 (file)
@@ -3,6 +3,11 @@
 include /lib/network
 
 addif() {
+       # PPP devices are configured by pppd, no need to run setup_interface here
+       case "$INTERFACE" in
+               ppp*) return 0;;
+       esac
+
        scan_interfaces
        local cfg="$(find_config "$INTERFACE")"
 
index 5eb007da1fe367b7a67c59d15f50ef5a2fba9924..0bd75fc0a76e565307575c6ecaf8616b4f98fe8d 100644 (file)
@@ -3,10 +3,6 @@ scan_ppp() {
        pppdev="${pppdev:-0}"
        config_set "$1" ifname "ppp$pppdev"
        config_set "$1" unit "$pppdev"
-       
-       # set 'auto' to 0, so that hotplug does not attempt to
-       # reconfigure an interface that is managed by pppd
-       config_set "$1" auto 0
 }
 
 start_pppd() {