cvs commit: LFS/bootscripts/lfs/init.d cleanfs

nathan at linuxfromscratch.org nathan at linuxfromscratch.org
Tue Mar 23 15:05:42 PST 2004


nathan      04/03/23 16:05:42

  Modified:    bootscripts CHANGELOG
               bootscripts/lfs/init.d cleanfs
  Log:
  Cleaned out /tmp/* on bootup.
  
  Revision  Changes    Path
  1.36      +5 -0      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- CHANGELOG	23 Mar 2004 18:38:45 -0000	1.35
  +++ CHANGELOG	23 Mar 2004 23:05:42 -0000	1.36
  @@ -1,4 +1,9 @@
  +n/a - March 23, 2004
  +
  +	* Cleaned the /tmp directory on bootup.  find command supplied by Zack
  +
   n/a - March 20, 2004
  +
   	* Added create-service-dir target and removed from create-dirs
   	* Changed service script install targets to use
   	  create-service-dir
  
  
  
  1.3       +4 -0      LFS/bootscripts/lfs/init.d/cleanfs
  
  Index: cleanfs
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/lfs/init.d/cleanfs,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- cleanfs	19 Mar 2004 22:08:29 -0000	1.2
  +++ cleanfs	23 Mar 2004 23:05:42 -0000	1.3
  @@ -19,6 +19,10 @@
   		echo "Removing possible /etc/nologin /fastboot and /forcefsck..."
   		rm -f /etc/nologin /fastboot /forcefsck
   		evaluate_retval
  +
  +		echo "Removing /tmp/*"
  +		( cd /tmp ; find -xdev -depth ! -name . ! -name lost+found -exec rm -rf {} \; )
  +		evaluate_retval
   		;;
   	*)
   		echo "Usage: $0 {start}"
  
  
  



More information about the lfs-book mailing list