diff --git a/etc/init/rc-default b/etc/init/rc-default deleted file mode 100644 index 54a700b..0000000 --- a/etc/init/rc-default +++ /dev/null @@ -1,28 +0,0 @@ -# rc - runlevel compatibility -# -# This task guesses what the "default runlevel" should be and starts the -# appropriate script. - -start on started syslogd - -stop on runlevel - -console logged - -script - echo "Starting rc-default script" - /sbin/runlevel --reboot || true - - if grep -q -w -- "-s\|single\|S" /proc/cmdline; then - /sbin/telinit S - elif [ -r /etc/inittab ]; then - RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)" - if [ -n "$RL" ]; then - /sbin/telinit $RL - else - /sbin/telinit 2 - fi - else - /sbin/telinit 2 - fi -end script diff --git a/etc/init/rc0 b/etc/init/rc0 deleted file mode 100644 index 30fb087..0000000 --- a/etc/init/rc0 +++ /dev/null @@ -1,25 +0,0 @@ -# rc0 - runlevel 0 compatibility -# -# This task runs the old sysv-rc runlevel 0 ("halt/poweroff") scripts with -# the decision as to whether to halt or power off the system left up to the -# script (and thus /etc/default/poweroff). - -start on runlevel 0 - -stop on runlevel - -console output -script - set $(runlevel || true) - if [ "$2" != "0" ] && [ "$2" != "6" ]; then - set $(runlevel --set 0 || true) - fi - - if [ "$1" != "unknown" ]; then - PREVLEVEL=$1 - RUNLEVEL=$2 - export PREVLEVEL RUNLEVEL - fi - - exec /etc/init.d/rc 0 -end script diff --git a/etc/init/rc1 b/etc/init/rc1 deleted file mode 100644 index b69e53a..0000000 --- a/etc/init/rc1 +++ /dev/null @@ -1,19 +0,0 @@ -# rc1 - runlevel 1 compatibility -# -# This task runs the old sysv-rc runlevel 1 ("single-user") scripts. - -start on runlevel 1 - -stop on runlevel - -console output -script - set $(runlevel --set 1 || true) - if [ "$1" != "unknown" ]; then - PREVLEVEL=$1 - RUNLEVEL=$2 - export PREVLEVEL RUNLEVEL - fi - - exec /etc/init.d/rc 1 -end script diff --git a/etc/init/rc2 b/etc/init/rc2 deleted file mode 100644 index 3ddaa8f..0000000 --- a/etc/init/rc2 +++ /dev/null @@ -1,20 +0,0 @@ -# rc2 - runlevel 2 compatibility -# -# This task runs the old sysv-rc runlevel 2 ("multi-user") scripts. It -# is usually started by the telinit compatibility wrapper. - -start on runlevel 2 - -stop on runlevel - -console output -script - set $(runlevel --set 2 || true) - if [ "$1" != "unknown" ]; then - PREVLEVEL=$1 - RUNLEVEL=$2 - export PREVLEVEL RUNLEVEL - fi - - exec /etc/init.d/rc 2 -end script diff --git a/etc/init/rc3 b/etc/init/rc3 deleted file mode 100644 index aa02a1d..0000000 --- a/etc/init/rc3 +++ /dev/null @@ -1,20 +0,0 @@ -# rc3 - runlevel 3 compatibility -# -# This task runs the old sysv-rc runlevel 3 (user defined) scripts. It -# is usually started by the telinit compatibility wrapper. - -start on runlevel 3 - -stop on runlevel - -console output -script - set $(runlevel --set 3 || true) - if [ "$1" != "unknown" ]; then - PREVLEVEL=$1 - RUNLEVEL=$2 - export PREVLEVEL RUNLEVEL - fi - - exec /etc/init.d/rc 3 -end script diff --git a/etc/init/rc4 b/etc/init/rc4 deleted file mode 100644 index 58c5b00..0000000 --- a/etc/init/rc4 +++ /dev/null @@ -1,20 +0,0 @@ -# rc3 - runlevel 3 compatibility -# -# This task runs the old sysv-rc runlevel 3 (user defined) scripts. It -# is usually started by the telinit compatibility wrapper. - -start on runlevel 4 - -stop on runlevel - -console output -script - set $(runlevel --set 4 || true) - if [ "$1" != "unknown" ]; then - PREVLEVEL=$1 - RUNLEVEL=$2 - export PREVLEVEL RUNLEVEL - fi - - exec /etc/init.d/rc 4 -end script diff --git a/etc/init/rc5 b/etc/init/rc5 deleted file mode 100644 index 4bb868b..0000000 --- a/etc/init/rc5 +++ /dev/null @@ -1,20 +0,0 @@ -# rc5 - runlevel 5 compatibility -# -# This task runs the old sysv-rc runlevel 5 (user defined) scripts. It -# is usually started by the telinit compatibility wrapper. - -start on runlevel 5 - -stop on runlevel - -console output -script - set $(runlevel --set 5 || true) - if [ "$1" != "unknown" ]; then - PREVLEVEL=$1 - RUNLEVEL=$2 - export PREVLEVEL RUNLEVEL - fi - - exec /etc/init.d/rc 5 -end script diff --git a/etc/init/rc6 b/etc/init/rc6 deleted file mode 100644 index 4927d90..0000000 --- a/etc/init/rc6 +++ /dev/null @@ -1,23 +0,0 @@ -# rc6 - runlevel 6 compatibility -# -# This task runs the old sysv-rc runlevel 6 ("reboot") scripts. - -start on runlevel 6 - -stop on runlevel - -console output -script - set $(runlevel || true) - if [ "$2" != "0" ] && [ "$2" != "6" ]; then - set $(runlevel --set 6 || true) - fi - - if [ "$1" != "unknown" ]; then - PREVLEVEL=$1 - RUNLEVEL=$2 - export PREVLEVEL RUNLEVEL - fi - - exec /etc/init.d/rc 6 -end script diff --git a/etc/init/rcS-sulogin b/etc/init/rcS-sulogin deleted file mode 100644 index 40fd13a..0000000 --- a/etc/init/rcS-sulogin +++ /dev/null @@ -1,25 +0,0 @@ -# rcS-sulogin - "single-user" runlevel compatibility -# -# This task runs the sulogin binary during "single-user" mode. - -start on runlevel S - -stop on runlevel - -console owner - -script - runlevel --set S >/dev/null || true - /sbin/sulogin - - if [ -r /etc/inittab ]; then - RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)" - if [ -n "$RL" ]; then - telinit $RL - else - telinit 2 - fi - else - telinit 2 - fi -end script