From 4f531a6e1b36373c267f98b760bc26f67ffdc95a Mon Sep 17 00:00:00 2001 From: Markus Rekkenbeil Date: Wed, 5 Dec 2012 21:24:26 +0100 Subject: [PATCH] Add LSB headers to some init scripts (grml-home,grml-misc and firewall) When LSB headers are missing then insserv will automatically register the scripts for startup and shutdown, having grml-reboot (and grml-halt being a symlink to grml-reboot) inside startup of a system is broken, so let's avoid that. --- etc/init.d/firewall | 7 +++++++ etc/init.d/grml-home | 7 +++++++ etc/init.d/grml-misc | 7 +++++++ etc/init.d/grml-reboot | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/etc/init.d/firewall b/etc/init.d/firewall index 2dbd15c..e370121 100755 --- a/etc/init.d/firewall +++ b/etc/init.d/firewall @@ -6,6 +6,13 @@ # License: This file is licensed under the GPL v2. # Latest change: Don Jul 20 09:53:31 CEST 2006 [mika] ################################################################################ +### BEGIN INIT INFO +# Provides: firewall +# Required-Start: $remote_fs $network +# Required-Stop: $remote_fs $network +# Default-Start: S 2 3 4 5 +# Default-Stop: +### END INIT INFO LANG=C LC_ALL=C diff --git a/etc/init.d/grml-home b/etc/init.d/grml-home index 91c9a6b..36568cb 100755 --- a/etc/init.d/grml-home +++ b/etc/init.d/grml-home @@ -6,6 +6,13 @@ # License: This file is licensed under the GPL v2. # Latest change: Don Sep 28 16:36:03 CEST 2006 [mika] ################################################################################ +### BEGIN INIT INFO +# Provides: grml-home +# Required-Start: $all +# Required-Stop: +# Default-Start: S 2 3 4 5 +# Default-Stop: +### END INIT INFO # user with UID 1000 fstabuser=$(getent passwd 1000 | cut -d: -f1) diff --git a/etc/init.d/grml-misc b/etc/init.d/grml-misc index 1dd0537..0f4d7b2 100755 --- a/etc/init.d/grml-misc +++ b/etc/init.d/grml-misc @@ -6,6 +6,13 @@ # License: This file is licensed under the GPL v2. # Latest change: Sam Mai 27 14:43:56 CEST 2006 [mika] ################################################################################ +### BEGIN INIT INFO +# Provides: grml-misc +# Required-Start: $all +# Required-Stop: +# Default-Start: S 2 3 4 5 +# Default-Stop: +### END INIT INFO if grep -q nocolor /proc/cmdline ; then RC_NOCOLOR=yes diff --git a/etc/init.d/grml-reboot b/etc/init.d/grml-reboot index c88f71f..50e6c9c 100755 --- a/etc/init.d/grml-reboot +++ b/etc/init.d/grml-reboot @@ -5,6 +5,13 @@ # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. ################################################################################ +### BEGIN INIT INFO +# Provides: grml-reboot +# Required-Start: +# Required-Stop: +# Default-Start: +# Default-Stop: +### END INIT INFO export PATH=/sbin:/bin:/usr/bin:/usr/sbin -- 2.1.4