Package:  gibraltar-bootsupport
Version:  2.1
Tags:     patch
User:     [EMAIL PROTECTED]
Usertags: missing-dependency

To be able to check boot script order, and also to be able to start
boot scripts in parallel, it is important to know the dependencies of
the various boot scripts.  The Linux Software Base specifies a init.d
header file format useful for this purpose, and adding such header to
the anacron init.d script would make it possible for me to use this
information to check the current sequence and to speed up the debian
boot.

I am working on a system to update the boot sequence based on these
dependencies, and would like see this as the default in Lenny.
Because of this, it is nice if the dependencies was updated quickly.

<URL:http://refspecs.freestandards.org/LSB_2.1.0/LSB-generic/LSB-generic/initscrcomconv.html>
documents the LSB header format.  Some debian notes are available from
<URL:http://wiki.debian.org/LSBInitScripts>.

Here is a patch to document the dependencies.  I hope this is correct.

diff -ur 
gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/check-network-interfaces 
gibraltar-bootcd-2.1/gibraltar-bootsupport/check-network-interfaces
--- gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/check-network-interfaces    
2006-05-04 21:28:44.000000000 +0200
+++ gibraltar-bootcd-2.1/gibraltar-bootsupport/check-network-interfaces 
2008-01-09 00:05:32.000000000 +0100
@@ -1,4 +1,12 @@
 #!/bin/bash
+### BEGIN INIT INFO
+# Provides:          check-network-interfaces
+# Required-Start:    $local_fs
+# X-Start-Before:    ifupdown
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+### END INIT INFO
 #
 # --------------------------------------------------------------------------
 # Copyright notice
diff -ur gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/make-var-ramdisk 
gibraltar-bootcd-2.1/gibraltar-bootsupport/make-var-ramdisk
--- gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/make-var-ramdisk    
2007-02-04 23:01:48.000000000 +0100
+++ gibraltar-bootcd-2.1/gibraltar-bootsupport/make-var-ramdisk 2008-01-09 
00:13:27.000000000 +0100
@@ -1,4 +1,11 @@
 #!/bin/sh
+### BEGIN INIT INFO
+# Provides:          mountvar
+# Required-Start:    $local_fs
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+### END INIT INFO
 #
 # --------------------------------------------------------------------------
 # Copyright notice
diff -ur gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/save-config 
gibraltar-bootcd-2.1/gibraltar-bootsupport/save-config
--- gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/save-config 2007-02-04 
23:01:48.000000000 +0100
+++ gibraltar-bootcd-2.1/gibraltar-bootsupport/save-config      2008-01-09 
00:18:36.000000000 +0100
@@ -1,4 +1,11 @@
 #!/bin/bash
+### BEGIN INIT INFO
+# Provides:          save-etc-disk
+# Required-Start:
+# Required-Stop:     $remote_fs $syslog
+# Default-Start:
+# Default-Stop:      0 6
+### END INIT INFO
 #
 # save-config
 # Parameters: see "usage"
diff -ur gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/setup-unconfigured.sh 
gibraltar-bootcd-2.1/gibraltar-bootsupport/setup-unconfigured.sh
--- gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/setup-unconfigured.sh       
2005-04-12 21:21:07.000000000 +0200
+++ gibraltar-bootcd-2.1/gibraltar-bootsupport/setup-unconfigured.sh    
2008-01-09 00:09:00.000000000 +0100
@@ -1,4 +1,11 @@
 #!/bin/sh
+### BEGIN INIT INFO
+# Provides:          setup-unconfigured
+# Required-Start:    $remote_fs
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+### END INIT INFO
 #
 # setup-unconfigured.sh
 #
diff -ur gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/unlock-cddrive 
gibraltar-bootcd-2.1/gibraltar-bootsupport/unlock-cddrive
--- gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/unlock-cddrive      
2005-04-12 21:21:07.000000000 +0200
+++ gibraltar-bootcd-2.1/gibraltar-bootsupport/unlock-cddrive   2008-01-09 
00:12:43.000000000 +0100
@@ -1,4 +1,11 @@
 #!/bin/sh
+### BEGIN INIT INFO
+# Provides:          unlock-cddrive
+# Required-Start:
+# Required-Stop:     $local_fs
+# Default-Start:
+# Default-Stop:      0 6
+### END INIT INFO
 #
 # unlock-cddrive
 #
diff -ur gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/unmount-initrd 
gibraltar-bootcd-2.1/gibraltar-bootsupport/unmount-initrd
--- gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/unmount-initrd      
2005-04-12 21:21:07.000000000 +0200
+++ gibraltar-bootcd-2.1/gibraltar-bootsupport/unmount-initrd   2008-01-09 
00:14:22.000000000 +0100
@@ -1,4 +1,11 @@
 #!/bin/bash
+### BEGIN INIT INFO
+# Provides:          unmount-initrd
+# Required-Start:    $remote_fs
+# Required-Stop:
+# Default-Start:     S
+# Default-Stop:
+### END INIT INFO
 #
 # unmount-initrd
 #
diff -ur gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/update-finalize 
gibraltar-bootcd-2.1/gibraltar-bootsupport/update-finalize
--- gibraltar-bootcd-2.1.orig/gibraltar-bootsupport/update-finalize     
2005-05-28 00:18:10.000000000 +0200
+++ gibraltar-bootcd-2.1/gibraltar-bootsupport/update-finalize  2008-01-09 
00:03:23.000000000 +0100
@@ -1,4 +1,11 @@
 #!/bin/sh
+### BEGIN INIT INFO
+# Provides:          update-finalize
+# Required-Start:    $remote_fs
+# Required-Stop:
+# Default-Start:     2 3 4 5
+# Default-Stop:
+### END INIT INFO
 #
 # Copyright Rene Mayrhofer, 2005
 # This script finalizes an update that has been started before the last boot.

Happy hacking,
--
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to