Browse Source

fix ppp defaultroute issues (based on patch from #1386, fixes #1181)

SVN-Revision: 6354
Felix Fietkau 19 years ago
parent
commit
644af0aebf
1 changed files with 4 additions and 0 deletions
  1. 4 0
      package/ppp/files/ppp.sh

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

@@ -3,6 +3,10 @@ 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() {