home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 16 / hacker16 / 16_HACKER16.ISO / linux / tpm-security-server-1.2.1.iso / archive / etc / rc.d / rc < prev   
Encoding:
Text File  |  2004-01-29  |  460 b   |  28 lines

  1. #!/bin/bash
  2.  
  3. echo "******************************"
  4. echo "Executing /etc/rc.d/rc"
  5. echo "******************************"
  6.  
  7. echo "Entering Runlevel $1"
  8.  
  9. runlevel=$1
  10.  
  11. for i in /etc/rc$runlevel.d/K*; do
  12.         $i stop
  13. done
  14.  
  15. for i in /etc/rc$runlevel.d/S*; do
  16.         $i start
  17. done
  18.  
  19. #Debug
  20. if [ -e /etc/watchboot ]; then
  21. echo "Press Enter to Continue"
  22. read A
  23. fi
  24.  
  25. echo "*****************************"
  26. echo "Finished /etc/rc.d/rc"
  27. echo "*****************************"
  28.