Browse Source

more reliable fix for handling ppp

SVN-Revision: 6356
Felix Fietkau 19 years ago
parent
commit
92feed28d8
2 changed files with 5 additions and 4 deletions
  1. 5 0
      package/base-files/files/etc/hotplug.d/net/10-net
  2. 0 4
      package/ppp/files/ppp.sh

+ 5 - 0
package/base-files/files/etc/hotplug.d/net/10-net

@@ -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")"
 

+ 0 - 4
package/ppp/files/ppp.sh

@@ -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() {