Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Sun Oct 4 17:28:46 2009 UTC (3 years, 7 months ago) by cjg
File size: 422 byte(s)
first commit
1 #!/bin/sh
2 #
3 # /etc/rc.shutdown: system shutdown script
4 #
5
6 # Set linefeed mode to avoid staircase effect
7 /bin/stty onlcr
8
9 echo "The system is coming down. Please wait."
10
11 # Terminate all processes
12 /sbin/killall5 -15
13 /bin/sleep 5
14 /sbin/killall5 -9
15
16 # Umount file systems
17 /bin/umount -n -a &> /dev/null
18
19 # Halt or reboot
20 if [ $RUNLEVEL = 0 ]; then
21 /sbin/poweroff -d -f -i
22 else
23 /sbin/reboot -d -f -i
24 fi
25
26 # End of file

Properties

Name Value
svn:executable *