aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1998-04-24 15:37:46 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1998-04-24 15:37:46 +0000
commit2f713d6dab4cd9cda521332933c8ef3a37f78b16 (patch)
treedcf4db29a8613c26b4aa2adf8de38699abed9c76
parent1e24754dfeca89eb7dd82adc487f362cd722c3ec (diff)
downloadinitscripts-2f713d6dab4cd9cda521332933c8ef3a37f78b16.tar
initscripts-2f713d6dab4cd9cda521332933c8ef3a37f78b16.tar.gz
initscripts-2f713d6dab4cd9cda521332933c8ef3a37f78b16.tar.bz2
initscripts-2f713d6dab4cd9cda521332933c8ef3a37f78b16.tar.xz
initscripts-2f713d6dab4cd9cda521332933c8ef3a37f78b16.zip
info for linuxconf
-rwxr-xr-xrc.d/rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.d/rc b/rc.d/rc
index 3d4b96f6..4b3dd644 100755
--- a/rc.d/rc
+++ b/rc.d/rc
@@ -22,6 +22,9 @@ export runlevel previous
# Get first argument. Set new runlevel to this argument.
[ "$1" != "" ] && runlevel="$argv1"
+# Tell linuxconf what runlevel we are in
+[ -d /var/run ] && echo "/etc/rc.d/rc$runlevel.d" > /var/run/runlevel.dir
+
# Is there an rc directory for this new runlevel?
if [ -d /etc/rc.d/rc$runlevel.d ]; then
# First, run the KILL scripts.