aboutsummaryrefslogtreecommitdiffstats
path: root/event.d/rc-default
diff options
context:
space:
mode:
Diffstat (limited to 'event.d/rc-default')
-rw-r--r--event.d/rc-default22
1 files changed, 0 insertions, 22 deletions
diff --git a/event.d/rc-default b/event.d/rc-default
deleted file mode 100644
index 9160062b..00000000
--- a/event.d/rc-default
+++ /dev/null
@@ -1,22 +0,0 @@
-# rc - runlevel compatibility
-#
-# This task guesses what the "default runlevel" should be and starts the
-# appropriate script.
-
-start on stopped rcS
-
-script
- runlevel --reboot || true
-
- RL="2"
- if [ -r /etc/inittab ]; then
- RL="$(sed -n -e "/^id:[0-9]*:initdefault:/{s/^id://;s/:.*//;p}" /etc/inittab || true)"
- fi
- for t in $(cat /proc/cmdline); do
- case $t in
- -s|single|S) RL="S" ;;
- [1-9]) RL="$t" ;;
- esac
- done
- telinit $RL
-end script