Comment 6 for bug 76304

Revision history for this message
ingo (rum-topf) wrote :

OK, I've finally managed to work out that a "-" before the line means "delete" and a "+" insert. So now my rcS looks as follows:

# This task runs the old sysv-rc startup scripts.

start on startup

stop on runlevel

# Note: there can be no previous runlevel here, if we have one it's bad
# information (we enter rc1 not rcS for maintenance).
console output
script
        set $(runlevel --set S || true)
        if [ "$1" != "unknown" ]; then
        PREVLEVEL=$1
        RUNLEVEL=$2
        export PREVLEVEL RUNLEVEL
        fi

        PREVLEVEL=N
        RUNLEVEL=S
        export PREVLEVEL RUNLEVEL

        exec /etc/init.d/rcS
end script