[Pkg-sysvinit-commits] r532 - sysvinit/trunk/debian/initscripts/etc/init.d

Thomas Hood jdthood-guest at costa.debian.org
Thu Jan 5 15:35:29 UTC 2006


Author: jdthood-guest
Date: 2006-01-05 15:35:28 +0000 (Thu, 05 Jan 2006)
New Revision: 532

Modified:
   sysvinit/trunk/debian/initscripts/etc/init.d/bootclean.sh
Log:
Reformat so that each find command is on two lines with the action part on the second line; this should change no behavior.  Later we plan to change the action parts to use new features of the find command

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/bootclean.sh
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/bootclean.sh	2006-01-05 13:41:42 UTC (rev 531)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/bootclean.sh	2006-01-05 15:35:28 UTC (rev 532)
@@ -63,11 +63,11 @@
 		if cd /tmp && [ "$(find . -maxdepth 0 -perm -002)" = "." ]
 		then
 			# First remove all old files...
-			find . -depth -xdev $TEXPR $EXCEPT \
-					! -type d -print0 | xargs -0r rm -f
+			find . -depth -xdev $TEXPR $EXCEPT ! -type d \
+				-print0 | xargs -0r rm -f
 			# ...and then all empty directories
-			find . -depth -xdev $DEXPR $EXCEPT \
-					-type d -empty -exec rmdir \{\} \;
+			find . -depth -xdev $DEXPR $EXCEPT -type d -empty \
+				-exec rmdir \{\} \;
 			rm -f .X*-lock
 		fi
 	)
@@ -80,7 +80,11 @@
 	#
 	[ -f /var/lock/.clean ] && return
 	[ "$VERBOSE" != no ] && log_action_begin_msg "Cleaning /var/lock"
-	( cd /var/lock && find . ! -type d -exec rm -f -- {} \; )
+	(
+		cd /var/lock \
+		&& find . ! -type d \
+			-exec rm -f -- {} \;
+	)
 	rm -f /var/lock/.clean
 	set -o noclobber
 	:> /var/lock/.clean
@@ -95,8 +99,9 @@
 	[ -f /var/run/.clean ] && return
 	[ "$VERBOSE" != no ] && log_action_begin_msg "Cleaning /var/run"
 	(
-		cd /var/run && \
-		find . ! -xtype d ! -name utmp ! -name innd.pid -exec rm -f -- {} \;
+		cd /var/run \
+		&& find . ! -xtype d ! -name utmp ! -name innd.pid \
+			-exec rm -f -- {} \;
 	)
 	rm -f /var/run/.clean
 	set -o noclobber




More information about the Pkg-sysvinit-commits mailing list