1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 03:58:35 +02:00

more reliable fix for handling ppp

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6356 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2007-02-25 13:45:45 +00:00
parent 6f12a935c7
commit 5f9c2e9fa6
2 changed files with 5 additions and 4 deletions

View File

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

View File

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