New rc.adsl startup script and procedure for SUSE 9.3

Usermode EciAdsl development (* ONLY * EciAdsl driver, not ADSL modems).

New rc.adsl startup script and procedure for SUSE 9.3

Postby Gibus » Thu Jun 02, 2005 09:31

Hello,

I have seen recently that you were lacking informations about SUSE 9.3 and startup script. I am using SUSE for more than one year now and I have rewritten a suitable startup script that is well taken into account on suse 9.3 system. Mainly, header informations are lacking in your rc.adsl file. Yast scripts extract startup scripts header informations to generate a system startup skeleton - I mean, it generate Snnscripts and Knnscripts links to /etc/init.d/script in /etc/init.d/rcx.d directories where x is the appropriate run level number.

How to have rc.adsl taken into account at the proper run levels ? Here is the procedure : Start Yast, click on " system " icon and next on " Level execution editor " icon. In the box, click on " expert mode ", and check for rc.adsl service. Select this line and choose " 3 " and " 5 " levels to start the service. Click on " Define / reset " and " Terminate " buttons.

From the beginning, you have performed a nice job. I address a big thank to the team.



rc.adsl should be modified like that :

#!/bin/bash
#
# /etc/init.d/rc.adsl
#
### BEGIN INIT INFO
# Provides: eciadsl
# Required-Start: $network
# Required-Stop:
# Default-Start: 3 5
# Default-Stop:
# Description: start eciadsl
### END INIT INFO

# Shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
# rc_status check and set local and overall rc status
# rc_status -v ditto but be verbose in local rc status
# rc_status -v -r ditto and clear the local rc status
# rc_failed set local and overall rc status to failed
# rc_failed <num> set local and overall rc status to <num><num>
# rc_reset clear local rc status (overall remains)
# rc_exit exit appropriate to overall rc status

# BEGIN OF CONFIG_SECTION

EXEC_PREFIX="/usr/local/bin"

. /etc/rc.status
rc_reset

# END OF CONFIG_SECTION


case "$1" in
start)
echo -n "Starting adsl: "
PATH=$EXEC_PREFIX:/usr/bin:/usr/sbin:/bin:/sbin eciadsl-start
RET=$?
if [ $RET -eq 0 ]; then
rc_status -v
else
rc_status -v7
fi
;;
stop)
echo -n "Shutting down adsl: "
PATH=$EXEC_PREFIX:/usr/bin:/usr/sbin:/bin:/sbin eciadsl-stop
RET=$?
if [ $RET -eq 0 ]; then
rc_status -v
else
rc_status -v7
fi
;;
status)
echo -n "Checking for adsl: "
checkproc $EXEC_PREFIX/eciadsl-pppoeci && echo "OK" || echo "No process"
;;
restart)
$0 stop && $0 start
exit $RET
;;
*)
echo "Usage: eciadsl {start|stop|status|restart}"
exit 1
;;
esac
exit 0
Gibus
 
Posts: 3
Joined: Thu May 26, 2005 11:08
Location: Antony (France)

Re: New rc.adsl startup script and procedure for SUSE 9.3

Postby wandara » Sat Jun 27, 2009 08:34

How to force ADSL modem to connect at maximum speed available?
I have a 512kbps internet connection. But most of the time it connects at lower speeds. When it's already connected, even more bandwidth is available, still it stuck at previous speed. I have to unplug the modem and re connect. Only after that the new speed appears. Is there a way to force the modem to connect at 512kbps all the time? I use a USB ADSL Modem. ADSL Router users doesn't have this problem.
____________
free matrimonial
Last edited by wandara on Mon Jun 29, 2009 11:12, edited 1 time in total.
wandara
 
Posts: 1
Joined: Thu Jun 25, 2009 07:19

Re: New rc.adsl startup script and procedure for SUSE 9.3

Postby FlashCode » Sat Jun 27, 2009 12:39

Connection speed is always max (there's no option to choose speed). Speed depends on synch .bin you're using, so please try other synch .bin files.
Sébastien - EciAdsl Linux driver developer.
EciAdsl support : web: http://eciadsl.flashtux.org - e-mail: flashcode@flashtux.org - IRC: irc.freenode.net, channel #eci
User avatar
FlashCode
EciAdsl Developer
 
Posts: 3574
Joined: Wed Mar 06, 2002 02:00
Location: France

Re: New rc.adsl startup script and procedure for SUSE 9.3

Postby brittneya » Fri Aug 07, 2009 12:32

Post deleted.
Last edited by brittneya on Sat Oct 10, 2009 11:42, edited 2 times in total.
brittneya
 
Posts: 1
Joined: Wed Aug 05, 2009 07:36

Re: New rc.adsl startup script and procedure for SUSE 9.3

Postby FlashCode » Fri Aug 07, 2009 12:36

For linux general network questions, you're on wrong forum.
We're helping in this forum for EciAdsl driver only.
Sébastien - EciAdsl Linux driver developer.
EciAdsl support : web: http://eciadsl.flashtux.org - e-mail: flashcode@flashtux.org - IRC: irc.freenode.net, channel #eci
User avatar
FlashCode
EciAdsl Developer
 
Posts: 3574
Joined: Wed Mar 06, 2002 02:00
Location: France

Re: New rc.adsl startup script and procedure for SUSE 9.3

Postby zorelina » Wed Oct 07, 2009 13:13

How to force ADSL modem to connect at maximum speed available? I have a 512kbps internet connection. But most of the time it connects at lower speeds. When it's already connected, even more bandwidth is available, still it stuck at previous speed. I have to unplug the modem and re connect. Only after that the new speed appears. Is there a way to force the modem to connect at 512kbps all the time? I use a USB ADSL Modem. ADSL Router users doesn't have this problem.
__________________
market samurai ~ marketsamurai ~ marketsamurai.com
Last edited by zorelina on Sat Oct 10, 2009 11:57, edited 1 time in total.
zorelina
 
Posts: 1
Joined: Wed Oct 07, 2009 07:11

Re: New rc.adsl startup script and procedure for SUSE 9.3

Postby FlashCode » Thu Oct 08, 2009 09:42

EciAdsl driver can't set speed. The only way to have higher speed is to try other synch .bin files.

By the way, you're on wrong forum, this one is for EciAdsl development, not support.
Sébastien - EciAdsl Linux driver developer.
EciAdsl support : web: http://eciadsl.flashtux.org - e-mail: flashcode@flashtux.org - IRC: irc.freenode.net, channel #eci
User avatar
FlashCode
EciAdsl Developer
 
Posts: 3574
Joined: Wed Mar 06, 2002 02:00
Location: France


Return to EciAdsl usermode development

Who is online

Users browsing this forum: No registered users and 1 guest

cron