initng/migrate_rc.d-initng.i.sh

glen cvs at pld-linux.org
Mon Dec 19 09:26:28 CET 2005


Author: glen
Date: Mon Dec 19 09:26:27 2005
New Revision: 6658

Modified:
   initng/migrate_rc.d-initng.i.sh
Log:
- change messages to be less confusing
- register new service if ran on real root

Modified: initng/migrate_rc.d-initng.i.sh
==============================================================================
--- initng/migrate_rc.d-initng.i.sh	(original)
+++ initng/migrate_rc.d-initng.i.sh	Mon Dec 19 09:26:27 2005
@@ -1,6 +1,7 @@
 #!/bin/sh
 # create dummy .i from each service present in /etc/rc.d/init.d
 
+# blacklisted because either handled or not real service
 blacklisted() {
 	case "$s" in
 	killall | allowlogin | sys-chroots | random | single | \
@@ -66,6 +67,12 @@
 		[ $break = 1 ] && continue
 	fi
 
-	echo "Adding $s ($pkg) as $svc"
+	echo -n "Creating $s ($pkg) as $svc"
 	add $s $pkg $svc
+	echo "Done"
+
+	# running on real root. add it instantly
+	if [ -f /etc/initng/$svc.i ]; then
+		ng-update add $svc
+	fi
 done



More information about the pld-cvs-commit mailing list