Revision 1108,
494 bytes
checked in by daisuke, 14 years ago
(diff) |
import initscripts-8.90.6 from internal cvs repository
|
Rev | Line | |
---|
[1108] | 1 | # rcS-sulogin - "single-user" runlevel compatibility |
---|
| 2 | # |
---|
| 3 | # This task runs /bin/bash during "single-user" mode, |
---|
| 4 | # then continues to the default runlevel. |
---|
| 5 | |
---|
| 6 | start on runlevel S |
---|
| 7 | |
---|
| 8 | stop on runlevel [!S] |
---|
| 9 | |
---|
| 10 | console owner |
---|
| 11 | script |
---|
| 12 | plymouth --hide-splash || true |
---|
| 13 | exec /bin/bash |
---|
| 14 | end script |
---|
| 15 | post-stop script |
---|
| 16 | if [ "$RUNLEVEL" = "S" ]; then |
---|
| 17 | runlevel=$(/bin/awk -F ':' '$3 == "initdefault" && $1 !~ "^#" { print $2 }' /etc/inittab) |
---|
| 18 | [ -z "$runlevel" ] && runlevel="3" |
---|
| 19 | exec telinit $runlevel |
---|
| 20 | fi |
---|
| 21 | end script |
---|
Note: See
TracBrowser
for help on using the repository browser.