[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Teach rootskel to call "initscripts"



Hi.

As discussed some weeks ago on this list, some installer packages
may want to have some boot/initialize scripts run before
the actual installer action happens..

Since editing etc/init.d/rcS for every such thing is not
really nice, I've inserted a simple for loop there.

Scripts should be put in /etc/init.d/SnnNAME.

If no one objects, could someone please install this change?

Index: rootskel/src/etc/init.d/rcS
===================================================================
RCS file: /cvs/debian-boot/debian-installer/rootskel/src/etc/init.d/rcS,v
retrieving revision 1.8
diff -u -r1.8 rcS
--- rootskel/src/etc/init.d/rcS	26 Mar 2001 04:39:39 -0000	1.8
+++ rootskel/src/etc/init.d/rcS	25 Oct 2002 11:16:07 -0000
@@ -9,3 +9,9 @@
 
 /sbin/syslogd -m 0
 echo "syslogd."
+
+# Call pre-startup scripts
+for script in /etc/init.d/S[0-9][0-9]*
+do
+  [ -x $script ] && $script
+done

-- 
CYa,
  Mario



Reply to: