I've done the modification, but it still does not work on my ubuntu.
my /etc/event.d/rcS is as follows:
# rcS - runlevel compatibility
#
# 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
#runlevel --set S >/dev/null || true
#PREVLEVEL=N
#RUNLEVEL=S
#export PREVLEVEL RUNLEVEL
set $(runlevel --set S || true)
if [ "$1" != "unknown" ]; then
PREVLEVEL=$1
RUNLEVEL=$2
export PREVLEVEL RUNLEVEL
fi
I've done the modification, but it still does not work on my ubuntu.
my /etc/event.d/rcS is as follows:
# rcS - runlevel compatibility
#
# 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
#runlevel --set S >/dev/null || true
#PREVLEVEL=N
#RUNLEVEL=S
#export PREVLEVEL RUNLEVEL
set $(runlevel --set S || true)
if [ "$1" != "unknown" ]; then
PREVLEVEL=$1
RUNLEVEL=$2
export PREVLEVEL RUNLEVEL
fi
exec /etc/init.d/rcS
end script
what's wrong?