source: clfs-embedded/bootscripts/clfs/rc.d/shutdown@ 9ab6faf

Last change on this file since 9ab6faf was b9cef84, checked in by Jim Gifford <clfs@…>, 18 years ago

Updates to bootscripts

  • Property mode set to 100755
File size: 522 bytes
RevLine 
[a44b91b]1#!/bin/ash
2
3# System Shutdown Script
4#
5
6PATH=/bin:/sbin:/usr/bin:/usr/sbin
7
8echo
9echo "System is going down for reboot or halt now."
10echo
11
12. /etc/rc.d/init.d/functions
13
[b9cef84]14echo "Starting stop scripts."
[a44b91b]15
16for i in /etc/rc.d/stop/*
17do
18 if [ -x $i ]; then
19 $i stop
20 fi
21done
22
23echo -n "Syncing hardware clock to system clock:"
24hwclock --systohc --utc
25check_status
26
27echo -n "Disabling swap space: "
28swapoff -a
29check_status
30
31echo -n "Syncing all filesystems: "
32sync
33check_status
34
35echo -n "Unmounting all filesystems: "
36umount -a -r
Note: See TracBrowser for help on using the repository browser.