--- /etc/sysconfig/cron.orig	2003-05-02 20:56:08.000000000 +1200
+++ /etc/sysconfig/cron	2003-05-06 16:58:36.000000000 +1200
@@ -31,6 +31,12 @@
 # from the temporary directories defined in TMP_DIRS_TO_CLEAR on bootup.
 # Please note, that this feature ignores OWNER_TO_KEEP_IN_TMP - all files will
 # be removed without exception."
+# VK 25 Jan 03, 6 May 03:
+# If this is set to a list of directories (i.e. starts with a "/"), these
+# directories will be cleared instead of those listed in TMP_DIRS_TO_CLEAR.
+# This can be used to clear directories at boot as well as clearing unused
+# files out of other directories.
+# Previously both those were mutually exclusive.
 #
 CLEAR_TMP_DIRS_AT_BOOTUP="no"
 ## Path:	System/Cron/Man
--- /etc/init.d/boot.localnet.orig	2003-01-21 03:33:39.000000000 +1300
+++ /etc/init.d/boot.localnet	2003-05-06 16:50:50.000000000 +1200
@@ -78,9 +78,18 @@
 	    echo -e "$rc_done_up"
 	fi
 	
+	# delete temp files
+	# If $CLEAR_TMP_DIRS_AT_BOOTUP = yes, delete files in
+	# $TMP_DIRS_TO_CLEAR, if $CLEAR_TMP_DIRS_AT_BOOTUP starts with a "/"
+	# delete files in those dirs instead.
+	CLEAR_DIRS="$TMP_DIRS_TO_CLEAR"
+	if [ "${CLEAR_TMP_DIRS_AT_BOOTUP:0:1}" = "/" ]; then
+	  CLEAR_DIRS="$CLEAR_TMP_DIRS_AT_BOOTUP"
+	  CLEAR_TMP_DIRS_AT_BOOTUP=yes
+	fi
 	if test "$CLEAR_TMP_DIRS_AT_BOOTUP" = yes; then
-	  echo -n "Cleaning temporary directories $TMP_DIRS_TO_CLEAR"
-	  for CURDIR in $TMP_DIRS_TO_CLEAR ; do
+	  echo -n "Cleaning temporary directories $CLEAR_DIRS"
+	  for CURDIR in $CLEAR_DIRS ; do
 	    find $CURDIR -printf '%P\0' | ( cd $CURDIR ; xargs -0 rm -rf )
 	  done
 	  for CURDIR in /tmp /tmp/.X11-unix /tmp/.ICE-unix \

