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

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Tue Jun 15 09:34:04 PDT 2004


winkie      04/06/15 10:34:04

  Modified:    bootscripts CHANGELOG
               bootscripts/lfs/init.d mountkernfs
  Log:
  Cleaned the output of the mountkernfs script
  
  Revision  Changes    Path
  1.101     +6 -0      LFS/bootscripts/CHANGELOG
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/CHANGELOG,v
  retrieving revision 1.100
  retrieving revision 1.101
  diff -u -r1.100 -r1.101
  --- CHANGELOG	9 Jun 2004 03:58:02 -0000	1.100
  +++ CHANGELOG	15 Jun 2004 16:34:03 -0000	1.101
  @@ -1,3 +1,9 @@
  +n/a - June 15, 2004
  +
  +	* Reset /proc/sys/kernel/hotplug to /bin/true when running the "stop"
  +	  command for hotplug
  +	* Cleaned the output of the mountkernfs script
  +
   n/a - June 8, 2004
   
   	* Changed the location the optional module script is installed to
  
  
  
  1.6       +11 -7     LFS/bootscripts/lfs/init.d/mountkernfs
  
  Index: mountkernfs
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/lfs/init.d/mountkernfs,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- mountkernfs	2 Jun 2004 04:14:49 -0000	1.5
  +++ mountkernfs	15 Jun 2004 16:34:04 -0000	1.6
  @@ -8,23 +8,27 @@
   
   case "$1" in
   	start)
  +		echo -n "Mounting kernel-based file systems:"
  +
   		if [ ! -e /proc/mounts ]; then
  -			echo "Mounting proc file system..."
  -			mount -n /proc
  -			evaluate_retval
  +			echo -n " /proc"
  +			mount -n /proc || failed=1
   		fi
   
   		# This should be mounted on a 2.6 kernel.
   		if grep -q '[[:space:]]sysfs' /proc/filesystems; then
   			if [ -d /sys -a ! -d /sys/block ]; then
  -				echo "Mounting sysfs file system..."
  -				mount -n /sys
  -				evaluate_retval
  +				echo -n " /sys"
  +				mount -n /sys || failed=1
   			fi
   		fi
  +
  +		echo
  +		(exit $failed)
  +		evaluate_retval
   		;;
   	*)
  -		echo "Usage $0 {start}"
  +		echo "Usage: $0 {start}"
   		exit 1
   		;;
   esac
  
  
  



More information about the lfs-book mailing list