Skip to content
Snippets Groups Projects
Commit 92feed28 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

more reliable fix for handling ppp

SVN-Revision: 6356
parent 43580f1b
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
include /lib/network include /lib/network
addif() { addif() {
# PPP devices are configured by pppd, no need to run setup_interface here
case "$INTERFACE" in
ppp*) return 0;;
esac
scan_interfaces scan_interfaces
local cfg="$(find_config "$INTERFACE")" local cfg="$(find_config "$INTERFACE")"
......
...@@ -3,10 +3,6 @@ scan_ppp() { ...@@ -3,10 +3,6 @@ scan_ppp() {
pppdev="${pppdev:-0}" pppdev="${pppdev:-0}"
config_set "$1" ifname "ppp$pppdev" config_set "$1" ifname "ppp$pppdev"
config_set "$1" unit "$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() { start_pppd() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment