On Fri, 2002-04-05 at 06:53, John Hasler wrote: > Bruce W. Bodnyk writes: > > Well my GNU/Linux installation doesn't have an rc.d directory; just a > > bunch of directories named rc0.d, rc1.d, rc2.d, etc. I'm assuming the > > scripts in these directories run as the system is passing through the > > various boot states. > > There are no scripts in those directories: just links to scripts in > /etc/init.d. > > > So do I simply copy the adsl-start script to one of these > > directories and proceed the name with Sxx? > > You would put the script in /etc/init.d and create appropriate links. > > > If so, which is the correct rcx.d to put it in and what do I number it? > > Did you install rp-pppoe by installing the Debian pppoe package? If so it > will have installed the proper script in the proper place. If not, do so.
I found the roaring penguin potato packages did not work nearly as well as the tarballs (being a much older version). I'd use the tarballs. Use /etc/init.d/skeleton as a template script for your own /etc/init.d/adsl script. Under start) it would do one thing... adsl-start, under stop, one thing adsl-stop Actually I have a copy here. Try this (see attachment) Then just make the necessary symlinks for activation on startup. Kind Regards Crispin Wellington
#! /bin/sh # # adsl control script. Simple wrapper around roaring penguin # adsl control scripts installed in /usr/sbin # PATH=/sbin:/bin:/usr/sbin:/usr/bin test -f /usr/sbin/pppoe || exit 0 set -e case "$1" in start) echo -n "Starting ADSL: " /usr/sbin/adsl-start echo "done" ;; stop) echo -n "Stopping ADSL: " /usr/sbin/adsl-stop echo "done" ;; status) /usr/sbin/adsl-status ;; setup) /usr/sbin/adsl-setup ;; connect) /usr/sbin/adsl-connect ;; restart|force-reload) # # If the "reload" option is implemented, move the "force-reload" # option to the "reload" entry above. If not, "force-reload" is # just the same as "restart". # echo -n "Restarting ADSL: " /usr/sbin/adsl-stop sleep 4 /usr/sbin/adsl-start echo "done" ;; *) N=/etc/init.d/adsl echo "Usage: $N {start|stop|status|setup|connect|restart|force-reload}" >&2 exit 1 ;; esac exit 0