home *** CD-ROM | disk | FTP | other *** search
- #!/bin/bash
-
- echo "******************************"
- echo "Executing /etc/rc.d/rc"
- echo "******************************"
-
- echo "Entering Runlevel $1"
-
- runlevel=$1
-
- for i in /etc/rc$runlevel.d/K*; do
- $i stop
- done
-
- for i in /etc/rc$runlevel.d/S*; do
- $i start
- done
-
- #Debug
- if [ -e /etc/watchboot ]; then
- echo "Press Enter to Continue"
- read A
- fi
-
- echo "*****************************"
- echo "Finished /etc/rc.d/rc"
- echo "*****************************"
-