more reliable fix for handling ppp
authorFelix Fietkau <nbd@openwrt.org>
Sun, 25 Feb 2007 13:45:45 +0000 (13:45 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 25 Feb 2007 13:45:45 +0000 (13:45 +0000)
SVN-Revision: 6356

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

index 9b72338..77eb6da 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 5eb007d..0bd75fc 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() {