blob: 5aacfae5f6238767bc56a4999ac4927f3ffa9434 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
diff -Naru orig/init new/init
--- orig/init 2021-09-01 04:13:34.868409735 -0500
+++ new/init 2021-09-03 11:00:53.480385352 -0500
@@ -8,6 +8,11 @@
# Source function library.
. /etc/init.d/functions
+if [[ $RADIORESETWAIT == yes ]]
+ . /usr/libexec/ppp/wait_for_reset
+else
+ function wait_for_reset { :; }
+fi
test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0
if [ -x /etc/ppp/ppp_on_boot ]; then RUNFILE=1; fi
@@ -15,7 +20,9 @@
case "$1" in
start)
echo -n "Starting up PPP link: pppd"
+ wait_for_reset
if [ "$RUNFILE" = "1" ]; then
+ logger "ppp_on_boot"
/etc/ppp/ppp_on_boot
else
pppd call provider
@@ -37,13 +44,15 @@
;;
restart|force-reload)
echo -n "Restarting PPP link: pppd"
- if [ "$RUNFILE" = "1" ]; then
+ if [ "$RUNFILE" = "1" ]; then
poff
sleep 5
+ wait_for_reset
/etc/ppp/ppp_on_boot
- else
+ else
poff provider
sleep 5
+ wait_for_reset
pppd call provider
fi
echo "."
|