]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-pppshutdownsleep.patch
- fixed my sed->awk modifications (now tested and work)
[packages/rc-scripts.git] / rc-scripts-pppshutdownsleep.patch
1 diff -Nur rc-scripts-0.3.1.orig/sysconfig/interfaces/ifcfg-description rc-scripts-0.3.1/sysconfig/interfaces/ifcfg-description
2 --- rc-scripts-0.3.1.orig/sysconfig/interfaces/ifcfg-description        Sat Jul 21 21:18:46 2001
3 +++ rc-scripts-0.3.1/sysconfig/interfaces/ifcfg-description     Fri Aug 23 17:56:05 2002
4 @@ -80,6 +80,7 @@
5                 DISCONNECTTIMEOUT=<number of seconds, default currently 5>
6                 RETRYTIMEOUT=<number of seconds, default currently 60>
7                 INITSCRIPT=<modem command>
8 +               SHUTDOWNSLEEP=<seconds to wait for pppd shutdown before giving up, default 2>
9                 DATAFORCHAT=<list of variables>
10                 <anything>=<anything> (for chat script)
11                 IPV6_PPP=yes|no (use IPv6 for ppp ?)
12 diff -Nur rc-scripts-0.3.1.orig/sysconfig/interfaces/ifcfg-ppp0.tpsa rc-scripts-0.3.1/sysconfig/interfaces/ifcfg-ppp0.tpsa
13 --- rc-scripts-0.3.1.orig/sysconfig/interfaces/ifcfg-ppp0.tpsa  Thu Aug 16 15:11:20 2001
14 +++ rc-scripts-0.3.1/sysconfig/interfaces/ifcfg-ppp0.tpsa       Fri Aug 23 17:54:34 2002
15 @@ -17,6 +17,7 @@
16  USER=ppp
17  PASSWORD=ppp
18  INITSTRING=ATe0s2=255
19 +SHUTDOWNSLEEP=10
20  DATAFORCHAT="USER PASSWORD INITSTRING PHONE"
21  
22  REPORTFILE=/var/log/ppp0.log
23 diff -Nur rc-scripts-0.3.1.orig/sysconfig/network-scripts/ifdown-ppp rc-scripts-0.3.1/sysconfig/network-scripts/ifdown-ppp
24 --- rc-scripts-0.3.1.orig/sysconfig/network-scripts/ifdown-ppp  Tue May 15 18:06:00 2001
25 +++ rc-scripts-0.3.1/sysconfig/network-scripts/ifdown-ppp       Fri Aug 23 17:52:21 2002
26 @@ -38,7 +38,11 @@
27    /etc/sysconfig/network-scripts/ifdown-post $1
28    exit 0
29  fi
30 -sleep 2
31 +if [ -n "$SHUTDOWNSLEEP" ]; then
32 +  sleep $SHUTDOWNSLEEP
33 +else
34 +  sleep 2
35 +fi
36  if [ ! -d /proc/$PID ]; then
37    /etc/sysconfig/network-scripts/ifdown-post $1
38    exit 0
This page took 0.049116 seconds and 3 git commands to generate.