aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-12-13 05:50:24 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-12-13 05:50:24 +0000
commitb5e0831f1e38330b2c18ec2634d447200e04414f (patch)
treefd7e6f7d6fef67a9f331a889eec957cc489f6be0 /package/ppp
parent279ee0b0490a4f2f0669a0fc9952c91565137ba3 (diff)
downloadmaster-187ad058-b5e0831f1e38330b2c18ec2634d447200e04414f.tar.gz
master-187ad058-b5e0831f1e38330b2c18ec2634d447200e04414f.tar.bz2
master-187ad058-b5e0831f1e38330b2c18ec2634d447200e04414f.zip
add workaround for ppp-on-boot issues, fixes #2524
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9722 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp')
-rw-r--r--package/ppp/files/ppp.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh
index 339b4e73e8..82fcbc8939 100644
--- a/package/ppp/files/ppp.sh
+++ b/package/ppp/files/ppp.sh
@@ -20,6 +20,10 @@ start_pppd() {
return 0
}
+ # Workaround: sometimes hotplug2 doesn't deliver the hotplug event for creating
+ # /dev/ppp fast enough to be used here
+ [ -e /dev/ppp ] || mknod /dev/ppp c 108 0
+
config_get device "$cfg" device
config_get unit "$cfg" unit
config_get username "$cfg" username