From 2f713d6dab4cd9cda521332933c8ef3a37f78b16 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Fri, 24 Apr 1998 15:37:46 +0000 Subject: info for linuxconf --- rc.d/rc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rc.d/rc') 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. -- cgit v1.2.1