Quoting Doug LaRue <[EMAIL PROTECTED]>:
echo Redhat or Suse based init processing
cp sprd /etc/sprd/
cd /etc/rc.d/rc0.d
ln -s /etc/sprd/sprd K96sprd
cd /etc/rc.d/rc3.d
ln -s ../etc/sprd/sprd S96sprd
cd ../rc4.d
ln -s /etc/sprd/sprd S96sprd
cd ../rc5.d
ln -s /etc/sprd/sprd S96sprd
cd ../rc6.d
ln -s /etc/sprd/sprd K96sprd
Oh RH and suse.. stop all the linking and use their chkconfig scripts.
It's pretty easy to make a header that'll work for both, like:
# The following section is used by RH's chkconfig/insserv bits
# chkconfig: - 29 19
# The following section is used at least by SuSE insserv(8)
### BEGIN INIT INFO
# Provides: autofs
# Required-Start: nfs ypbind afs
# Required-Stop: $network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: autofs is the linux automount subsystem
### END INIT INFO
then run (usually) chkconfig --add <script>
I personally like suse's automatic numbering based on the dependencies
(Required stuff) but that's me. :)
If you do ever do gentoo, don't link, if you want it started at boot run:
rc-update addd $script default
see rc-update for details.
--
Mike Marion-Unix/Linux Admin-http://www.miguelito.org
ZMODEM: Big bits, Soft blocks, Tighter ASCII...
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list