Comment 16 for bug 85014

Revision history for this message
me (ubuntu-ethen) wrote : Re: Fail to enter rc1.d by putting 1 in bootparam in edgy

I'm happy with
...
        elif grep -qE -- "[[:space:]]+[1-5]([[:space:]]|$)" /proc/cmdline; then
            RL="$(grep -Eo -- "[[:space:]]+[1-5]([[:space:]]|$)" /proc/cmdline)"
            if [ -n "$RL" ]; then
                telinit $RL
            else
                telinit 2
            fi
...
on hardy.