1 diff -ruN rp-pppoe-3.5-orig/scripts/adsl-connect.in rp-pppoe-3.5-4/scripts/adsl-connect.in
2 --- rp-pppoe-3.5-orig/scripts/adsl-connect.in 2002-07-08 16:38:24.000000000 +0200
3 +++ rp-pppoe-3.5-4/scripts/adsl-connect.in 2005-03-10 01:01:15.000000000 +0100
5 # Usage: adsl-connect [config_file]
6 # adsl-connect interface user [config_file]
7 # Second form overrides USER and ETH from config file.
8 -# If config_file is omitted, defaults to /etc//ppp/pppoe.conf
9 +# If config_file is omitted, defaults to /etc/pppoe.conf
11 #***********************************************************************
15 IFCONFIG=/sbin/ifconfig
20 LOGGER="/usr/bin/logger -t `basename $0`"
25 # Set to "C" locale so we can parse messages from commands
30 -if test "`@ID@ -u`" != 0 ; then
31 - echo "$0: You must be root to run this script" >& 2
35 if test "$SETSID" != "" -a ! -x "$SETSID"; then
39 -CONFIG=/etc//ppp/pppoe.conf
40 +CONFIG=/etc/pppoe.conf
45 if test `uname -s` = Linux ; then
46 $IFCONFIG $ETH up mtu 1500
47 # For 2.4 kernels. Will fail on 2.2.x, but who cares?
48 - modprobe ppp_generic > /dev/null 2>&1
49 - modprobe ppp_async > /dev/null 2>&1
50 - modprobe ppp_synctty > /dev/null 2>&1
51 + $MODPROBE ppp_generic > /dev/null 2>&1
52 + $MODPROBE ppp_async > /dev/null 2>&1
53 + $MODPROBE ppp_synctty > /dev/null 2>&1
54 if test -n "$LINUX_PLUGIN" ; then
55 - modprobe pppox > /dev/null 2>&1
56 - modprobe pppoe > /dev/null 2>&1
57 + $MODPROBE pppox > /dev/null 2>&1
58 + $MODPROBE pppoe > /dev/null 2>&1
64 # Increase the chances of it working on Linux...
65 if test `uname -s` = Linux ; then
66 - modprobe n_hdlc > /dev/null 2>&1
67 + $MODPROBE n_hdlc > /dev/null 2>&1
73 # Interface name MUST BE LAST!!
74 PLUGIN_OPTS="$PLUGIN_OPTS $ETH"
75 - modprobe pppoe > /dev/null 2>&1
76 + $MODPROBE pppoe > /dev/null 2>&1
79 if test "$DEFAULTROUTE" != "no" ; then
80 diff -ruN rp-pppoe-3.5-orig/scripts/adsl-setup.in rp-pppoe-3.5-4/scripts/adsl-setup.in
81 --- rp-pppoe-3.5-orig/scripts/adsl-setup.in 2002-07-08 16:38:24.000000000 +0200
82 +++ rp-pppoe-3.5-4/scripts/adsl-setup.in 2005-03-09 17:24:02.000000000 +0100
87 -CONFIG=/etc/ppp/pppoe.conf
88 +CONFIG=/etc/pppoe.conf
90 # Protect created files
97 -if [ "`@ID@ -u`" != 0 ] ; then
98 - $ECHO "$0: Sorry, you must be root to run this script"
102 # Prototype config file must exist
103 if [ ! -r "$CONFIG" ] ; then
104 $ECHO "Oh, dear, I don't see the file '$CONFIG' anywhere. Please"
109 -# Where is pppd likely to put its pid?
110 -if [ -d /var/run ] ; then
117 # Some #$(*& ISP's use a slash in the user name...
118 sed -e "s&^USER=.*&USER='$U'&" \
119 diff -ruN rp-pppoe-3.5-orig/scripts/adsl-start.in rp-pppoe-3.5-4/scripts/adsl-start.in
120 --- rp-pppoe-3.5-orig/scripts/adsl-start.in 2002-07-08 16:38:24.000000000 +0200
121 +++ rp-pppoe-3.5-4/scripts/adsl-start.in 2005-03-10 00:53:13.000000000 +0100
123 # Usage: adsl-start [config_file]
124 # adsl-start interface user [config_file]
125 # Second form overrides USER and ETH from config file.
126 -# If config_file is omitted, defaults to /etc/ppp/pppoe.conf
127 +# If config_file is omitted, defaults to /etc/pppoe.conf
129 #***********************************************************************
135 -CONFIG=/etc/ppp/pppoe.conf
136 +CONFIG=/etc/pppoe.conf
141 -if [ "`@ID@ -u`" != 0 ] ; then
142 - $ECHO "$ME: You must be root to run this script" >& 2
150 if [ "$DEBUG" = "1" ] ; then
153 # Delete bogus PIDFILE
154 rm -f "$PIDFILE" "$PIDFILE.pppd" "$PIDFILE.pppoe" "$PIDFILE.start"
159 echo $$ > $PIDFILE.start
160 @@ -169,14 +169,14 @@
161 # Looks like the interface came up
163 # Print newline if standard input is a TTY
164 - tty -s && $ECHO " Connected!"
165 + $TTY_S && $ECHO " Connected!"
169 if test -n "$FORCEPING" ; then
170 $ECHO -n "$FORCEPING"
172 - tty -s && $ECHO -n "$PING"
173 + $TTY_S && $ECHO -n "$PING"
176 TIME=`expr $TIME + $CONNECT_POLL`
177 diff -ruN rp-pppoe-3.5-orig/scripts/adsl-status rp-pppoe-3.5-4/scripts/adsl-status
178 --- rp-pppoe-3.5-orig/scripts/adsl-status 2002-07-08 16:38:24.000000000 +0200
179 +++ rp-pppoe-3.5-4/scripts/adsl-status 2005-03-10 01:01:17.000000000 +0100
183 # Usage: adsl-status [config_file]
184 -# If config_file is omitted, defaults to /etc/ppp/pppoe.conf
185 +# If config_file is omitted, defaults to /etc/pppoe.conf
187 #***********************************************************************
190 -CONFIG=/etc/ppp/pppoe.conf
191 +CONFIG=/etc/pppoe.conf
197 PPPD_PID=`cat "$PPPD_PIDFILE"`
199 -# Sigh. Some versions of pppd put PID files in /var/run; others put them
200 -# in /etc/ppp. Since it's too messy to figure out what pppd does, we
201 -# try both locations.
202 -for i in /etc/ppp/ppp*.pid /var/run/ppp*.pid ; do
203 +for i in /var/run/ppp*.pid ; do
206 if [ "$PID" = "$PPPD_PID" ] ; then
207 diff -ruN rp-pppoe-3.5-orig/scripts/adsl-stop.in rp-pppoe-3.5-4/scripts/adsl-stop.in
208 --- rp-pppoe-3.5-orig/scripts/adsl-stop.in 2002-07-08 16:38:24.000000000 +0200
209 +++ rp-pppoe-3.5-4/scripts/adsl-stop.in 2005-03-09 16:37:38.000000000 +0100
213 # Usage: adsl-stop [config_file]
214 -# If config_file is omitted, defaults to /etc/ppp/pppoe.conf
215 +# If config_file is omitted, defaults to /etc/pppoe.conf
217 #***********************************************************************
220 LOGGER="/usr/bin/logger -t $ME"
222 if [ "$CONFIG" = "" ] ; then
223 - CONFIG=/etc/ppp/pppoe.conf
224 + CONFIG=/etc/pppoe.conf
227 if [ ! -f "$CONFIG" -o ! -r "$CONFIG" ] ; then