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

winkie at linuxfromscratch.org winkie at linuxfromscratch.org
Sat May 15 12:38:29 PDT 2004


winkie      04/05/15 13:38:29

  Modified:    bootscripts/lfs/init.d rc
  Log:
  Only pass "stop" to scripts in runlevels 0 or 6
  
  Revision  Changes    Path
  1.2       +4 -1      LFS/bootscripts/lfs/init.d/rc
  
  Index: rc
  ===================================================================
  RCS file: /home/cvsroot/LFS/bootscripts/lfs/init.d/rc,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- rc	17 Mar 2004 22:24:23 -0000	1.1
  +++ rc	15 May 2004 19:38:29 -0000	1.2
  @@ -78,7 +78,10 @@
   
           check_script_status
   
  -        $i start
  +	case $runlevel in
  +		0|6)	$i stop		;;
  +		*)	$i start	;;
  +	esac
           error_value=$?
   
           if [ "$error_value" != "0" ]
  
  
  



More information about the lfs-book mailing list