--- rc.single | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rc.single b/rc.single index 1a95ee9..74368fd 100755 --- a/rc.single +++ b/rc.single @@ -35,14 +35,6 @@ fi run_hook single_end -if [[ $RUNLEVEL = 1 ]]; then - printsep - printhl "Entering single-user mode..." - # make sure /dev/initctl is in place - kill -HUP 1 - exec init -t1 S -fi - if [[ -f /run/bootlogd.pid ]]; then touch /var/log/boot kill $(< /run/bootlogd.pid) @@ -51,5 +43,13 @@ if [[ -f /run/bootlogd.pid ]]; then -e 's/\^\[(\[151|%)G//g' /var/log/boot fi +if [[ $RUNLEVEL = 1 ]]; then + printsep + printhl "Entering single-user mode..." + # make sure /dev/initctl is in place + kill -HUP 1 + exec init -t1 S +fi + # End of file # vim: set ts=2 sw=2 noet: -- 1.7.1