diff options
author | Bill Nottingham <notting@redhat.com> | 2008-04-25 14:13:35 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-04-25 14:13:35 -0400 |
commit | 1de0b38f2b65479c6a5a4bf67b67d995cd7c7a89 (patch) | |
tree | fe1c8004f87b4cd4447892ec118e8a41969b3dd8 /event.d/rcS | |
parent | ae9e1c75a5e24e4f2c9d60eb4b8838e0b043ec7d (diff) | |
download | initscripts-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/rcS')
-rw-r--r-- | event.d/rcS | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/event.d/rcS b/event.d/rcS index 7717e3bd..b361de1c 100644 --- a/event.d/rcS +++ b/event.d/rcS @@ -13,13 +13,17 @@ console output script runlevel --set S >/dev/null || true - #set $(runlevel --set S || true) - #if [ "$1" != "unknown" ]; then - # PREVLEVEL=$1 - # RUNLEVEL=$2 - # export PREVLEVEL RUNLEVEL - #fi + /etc/rc.d/rc.sysinit + runlevel --reboot || true + . /etc/sysconfig/init - exec /etc/rc.d/rc.sysinit - exec /etc/rc.d/rc S + RL="3" + [ "$GRAPHICAL" = "yes" ] && RL="5" + 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 |