-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Saturday 2007-09-22 at 07:14 -0400, James Knott wrote:
As I mentioned in the other note, if you want stuff to run at the end of
the init level change, create /etc/rc.d/boot.local.
Er... I believe it runs only afther boot, not on every runlevel change:
#! /bin/sh
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved.
#
# Author: Werner Fink , 1996
# Burchard Steinbild , 1996
#
# /etc/init.d/boot.local
#
# script with local commands to be executed from init on system startup
#
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
#
However, /etc/rc.d/after.local is executed after each runlevel change. You
can see that reading the main script, /etc/rc.d/rc:
#
# Start the user defined resource control script which
# should be executed _after_ runlevel is reached.
#
if test -f /etc/init.d/after.local ; then
echo -n "Master Resource Control: "
echo "Running /etc/init.d/after.local"
/bin/sh /etc/init.d/after.local
rc_status -v1 -r
splashtrigger "after.local"
fi
There is a corresponding script to be executed before, ie,
/etc/init.d/before.local:
# Start the user defined resource control script which
# should be executed _before_ runlevel is entered.
#
if test -f /etc/init.d/before.local ; then
echo -n "Master Resource Control: "
echo "Running /etc/init.d/before.local"
/bin/sh /etc/init.d/before.local
rc_status -v1 -r
splashtrigger "before.local"
fi
- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFG9QBDtTMYHG2NR9URAo1NAJ4xsZU26oAVZGG+7rJjaOjN8YdzjACbBqxL
8iXB/JbApFvyx5J1oIGr4gA=
=adOl
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse+help@opensuse.org