aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/rc')
-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.