[Initng-svn] r3654 - initng-ifiles/trunk/initfiles/system portage/gentoo/sys-apps/initng/files

svn at initng.thinktux.net svn at initng.thinktux.net
Mon Apr 3 14:46:04 CEST 2006


Author: deac
Date: Mon Apr  3 14:46:02 2006
New Revision: 3654

Added:
   portage/gentoo/sys-apps/initng/files/digest-initng-9998
Modified:
   initng-ifiles/trunk/initfiles/system/readahead.ii
Log:
ebuilds should now work

Modified: initng-ifiles/trunk/initfiles/system/readahead.ii
==============================================================================
--- initng-ifiles/trunk/initfiles/system/readahead.ii	(original)
+++ initng-ifiles/trunk/initfiles/system/readahead.ii	Mon Apr  3 14:46:02 2006
@@ -64,47 +64,43 @@
 	    exit 0
 	};
 }
-		
 
 service system/readahead {
 	need = system/initial/mountvirtfs;
-
-#ifd debian
 	script start = {
-	
-	# Check if @/usr/sbin/readahead-list@ exits.
-	if [ -x @/usr/sbin/readahead-list@ ]
-	then
-	    
-	    # The recent implention uses @/sbin/readahead-watch@ to get the list
-	    if [ -e /etc/readahead/boot ]
-	    then
-		echo " Reading ahead, from list /etc/readahead/boot "
-		exec @/usr/sbin/readahead-list@ /etc/readahead/boot
-		exit 1
-	    else
-		# if the watcher exist, generate /etc/readahead/boot
-		echo "Starting system/readahead/watcher, to collect boot record data "
-		ngc --instant --quiet -u system/readahead/watcher
-		# Sleep 4 seconds, so readahead-watcher really stars, and got all.
-		echo "Sleep 4"
-		sleep 1
-		echo "Sleep 3"
-		sleep 1
-		echo "Sleep 2"
-		sleep 1
-		echo "Sleep 1"
-		sleep 1
-	    fi
+		# Check if @/usr/sbin/readahead-list@ exits.
+		if [ -x @/usr/sbin/readahead-list@ ]
+		then
+			
+			# The recent implention uses @/sbin/readahead-watch@ to get the list
+			if [ -e /etc/readahead/boot ]
+			then
+				echo " Reading ahead, from list /etc/readahead/boot "
+				exec @/usr/sbin/readahead-list@ /etc/readahead/boot
+				exit 1
+			else
+			# if the watcher exist, generate /etc/readahead/boot
+			echo "Starting system/readahead/watcher, to collect boot record data "
+			ngc --instant --quiet -u system/readahead/watcher
+			# Sleep 4 seconds, so readahead-watcher really stars, and got all.
+			echo "Sleep 4"
+			sleep 1
+			echo "Sleep 3"
+			sleep 1
+			echo "Sleep 2"
+			sleep 1
+			echo "Sleep 1"
+			sleep 1
+			fi
+
+			# This is the old location for readahead file
+			if [ -e /etc/readahead/readahead ]
+			then
+			exec @/usr/sbin/readahead-list@ /etc/readahead/readahead
+			fi
 
-	    # This is the old location for readahead file
-	    if [ -e /etc/readahead/readahead ]
-	    then
-		exec @/usr/sbin/readahead-list@ /etc/readahead/readahead
-	    fi
-
-	fi
-	exit 0
+		fi
+		exit 0
 	};
 
 	
@@ -113,6 +109,4 @@
 	#	@/usr/bin/filelist-order@ /etc/readahead/readahead > /etc/readahead/readahead.new
 	#	@mv@ -f /etc/readahead/readahead.new /etc/readahead/readahead
 	#};
-
-#endd
 }


More information about the Initng-svn mailing list