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
