The following would be neater, replace the current set call with

    set $(runlevel || true)
    if [ "$2" != "0" ] && [ "$2" != "6" ]; then
        set $(runlevel --set 6 || true)
    fi

That way we just don't bother storing the value in /var/run/utmp, and go
with what's already there.  /etc/init.d/rc overrides the value of
RUNLEVEL with the argument its given, so the effect will be just that
the PREVLEVEL remains unchanged.

-- 
Ctl+Alt+Del twice at tty console login gives root access
https://launchpad.net/bugs/63852

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to