Move bootlocal.*, haltlocal.* to grml-live
authorChristian Hofstaedtler <ch@grml.org>
Thu, 28 Jul 2011 16:36:21 +0000 (18:36 +0200)
committerChristian Hofstaedtler <ch@grml.org>
Thu, 28 Jul 2011 16:36:21 +0000 (18:36 +0200)
debian/postinst
debian/postrm
doc/grml-autoconfig.8.txt

index 3783fbe..da1ffc6 100755 (executable)
@@ -3,70 +3,6 @@ set -e
 
 if [ "$1" = "configure" ]; then
   update-rc.d grml-autoconfig start 30 2 . >/dev/null
 
 if [ "$1" = "configure" ]; then
   update-rc.d grml-autoconfig start 30 2 . >/dev/null
-
-# begin of "create special init scripts which won't be touched any more by grml"
-. /etc/grml/lsb-functions
-DATE=$(date)
-
-# bootup
-INITSCRIPT=bootlocal
-INITNAME=/etc/init.d/${INITSCRIPT}
-
-for initscript in ${INITNAME}.first ${INITNAME}.middle ${INITNAME}.last ; do
-  if ! [ -r "$initscript" ] ; then
-     einfo "Creating ${initscript}"
-  cat >$initscript <<EOT
-#!/bin/sh
-# Filename:      $initscript
-# Purpose:       script which allows manual configuration of bootup process
-# Latest change: $DATE
-################################################################################
-# Notice: you can modify this file as you like as long as you do not rename it!
-# grml won't touch this file, even not on upgrades. It will be created only
-# once - when the file isn't present at all.
-################################################################################
-
-## END OF FILE #################################################################
-EOT
-  chmod 755 $initscript; eend $?
-  fi
-done
-
-# register initscripts via update-rc.d:
-update-rc.d ${INITSCRIPT}.first  start 1  S . >/dev/null
-update-rc.d ${INITSCRIPT}.middle start 29 2 . >/dev/null
-update-rc.d ${INITSCRIPT}.last   start 99 2 . >/dev/null
-
-# shutdown
-INITSCRIPT=haltlocal
-INITNAME=/etc/init.d/${INITSCRIPT}
-
-for initscript in ${INITNAME}.first ${INITNAME}.middle ${INITNAME}.last ; do
-  if ! [ -r "$initscript" ] ; then
-     einfo "Creating ${initscript}"
-  cat >$initscript <<EOT
-#!/bin/sh
-# Filename:      $initscript
-# Purpose:       script which allows manual configuration of shutdown process
-# Latest change: $DATE
-################################################################################
-# Notice: you can modify this file as you like as long as you do not rename it!
-# grml won't touch this file, even not on upgrades. It will be created only
-# once - when the file isn't present at all.
-################################################################################
-
-## END OF FILE #################################################################
-EOT
-  chmod 755 $initscript; eend $?
-  fi
-done
-
-# register initscripts via update-rc.d:
-update-rc.d ${INITSCRIPT}.first  stop 1  0 1 6 . >/dev/null
-update-rc.d ${INITSCRIPT}.middle stop 29 0 1 6 . >/dev/null
-update-rc.d ${INITSCRIPT}.last   stop 99 0 1 6 . >/dev/null
-
-# end of "create special init scripts which won't be touched any more by grml"
 fi
 
 #DEBHELPER#
 fi
 
 #DEBHELPER#
index c61a0d7..319eb36 100755 (executable)
@@ -3,17 +3,6 @@ set -e
 
 if [ "$1" = "purge" ]; then
   update-rc.d grml-autoconfig remove >/dev/null || exit 0
 
 if [ "$1" = "purge" ]; then
   update-rc.d grml-autoconfig remove >/dev/null || exit 0
-
-# don't delete /etc/init.d/bootlocal* scripts, even not when purging - notice therefore:
-  INITSCRIPT=bootlocal
-  INITNAME=/etc/init.d/$INITSCRIPT
-  if [ -r "${INITNAME}.first" ] ; then
-    echo "Notice: ${INITNAME}.{first,middle,last} won't be deleted automatically."
-    echo "If you want to remove them delete them manually and then run:"
-    echo "    update-rc.d ${INITSCRIPT}.first  remove"
-    echo "    update-rc.d ${INITSCRIPT}.middle remove"
-    echo "    update-rc.d ${INITSCRIPT}.last   remove"
-  fi
 fi
 
 #DEBHELPER#
 fi
 
 #DEBHELPER#
index 5312f50..3c7e7f7 100644 (file)
@@ -32,21 +32,6 @@ dialog-based interface to the configuration file. You can either use the script
 for configuring grml-autoconfig or modify the configuration file manually on
 your own (there is no interference).
 
 for configuring grml-autoconfig or modify the configuration file manually on
 your own (there is no interference).
 
-The grml-autoconfig package creates three initscripts on installation:
-/etc/init.d/bootlocal.first, /etc/init.d/bootlocal.middle and
-/etc/init.d/bootlocal.last.
-
-They are created in the maintainer scripts of the grml-autoconfig package.  This
-means they are not part of the package itself and therefore also not marked as
-configuration files of the package. As a result the files won't be touched
-anymore, neither when upgrading nor when removing the package! If you want to
-add your own bootup commands you can use these files.
-/etc/init.d/bootlocal.first is executed at the very beginning, in runlevel 'S'.
-/etc/init.d/bootlocal.middle is executed right before startup of grml-autoconfig
-itself in runlevel '2' only (where grml-autoconfig is located as well).  Finally
-/etc/init.d/bootlocal.last is executed as one of the last initscripts in
-runlevel '2' only.
-
 Files
 -----
 
 Files
 -----