summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-02-25 13:45:45 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-02-25 13:45:45 +0000
commit5f9c2e9fa6bb077f115b2c3e1d5db6b79dbfc625 (patch)
treec1b516342537403fd24e25da08a09702565388c9 /package
parent6f12a935c71837c40a98efe2b4e957c6ce7ec143 (diff)
more reliable fix for handling ppp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6356 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/base-files/files/etc/hotplug.d/net/10-net5
-rw-r--r--package/ppp/files/ppp.sh4
2 files changed, 5 insertions, 4 deletions
diff --git a/package/base-files/files/etc/hotplug.d/net/10-net b/package/base-files/files/etc/hotplug.d/net/10-net
index 9b72338ce..77eb6da9d 100644
--- a/package/base-files/files/etc/hotplug.d/net/10-net
+++ b/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")"
diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh
index 5eb007da1..0bd75fc0a 100644
--- a/package/ppp/files/ppp.sh
+++ b/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() {