aboutsummaryrefslogtreecommitdiffstats
path: root/event.d/rc-default
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-04-25 14:13:35 -0400
committerBill Nottingham <notting@redhat.com>2008-04-25 14:13:35 -0400
commit1de0b38f2b65479c6a5a4bf67b67d995cd7c7a89 (patch)
treefe1c8004f87b4cd4447892ec118e8a41969b3dd8 /event.d/rc-default
parentae9e1c75a5e24e4f2c9d60eb4b8838e0b043ec7d (diff)
downloadinitscripts-1de0b38f2b65479c6a5a4bf67b67d995cd7c7a89.tar
initscripts-1de0b38f2b65479c6a5a4bf67b67d995cd7c7a89.tar.gz
initscripts-1de0b38f2b65479c6a5a4bf67b67d995cd7c7a89.tar.bz2
initscripts-1de0b38f2b65479c6a5a4bf67b67d995cd7c7a89.tar.xz
initscripts-1de0b38f2b65479c6a5a4bf67b67d995cd7c7a89.zip
Import from event-compat-sysv-0.3.9-11.fc9
- Make ttys start after prefdm in runlevel 5 - Merge rc-default into rcS - Remove reliance on /etc/inittab
Diffstat (limited to 'event.d/rc-default')
-rw-r--r--event.d/rc-default22
1 files changed, 0 insertions, 22 deletions
diff --git a/event.d/rc-default b/event.d/rc-default
deleted file mode 100644
index 9160062b..00000000
--- a/event.d/rc-default
+++ /dev/null
@@ -1,22 +0,0 @@
-# rc - runlevel compatibility
-#
-# This task guesses what the "default runlevel" should be and starts the
-# appropriate script.
-
-start on stopped rcS
-
-script
- runlevel --reboot || true
-
- RL="2"
- if [ -r /etc/inittab ]; then
- RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
- fi
- for t in $(cat /proc/cmdline); do
- case $t in
- -s|single|S) RL="S" ;;
- [1-9]) RL="$t" ;;
- esac
- done
- telinit $RL
-end script