source: clfs-embedded/bootscripts/clfs/rc.d/shutdown@ 155e741

Last change on this file since 155e741 was ae024d6, checked in by Jim Gifford <clfs@…>, 18 years ago

Bootscripts Updates

  • Property mode set to 100755
File size: 541 bytes
Line 
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
14echo "Starting local stop scripts."
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
37check_status
Note: See TracBrowser for help on using the repository browser.