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

Last change on this file since e8916bf was 381c53b, checked in by Jim Gifford <clfs@…>, 18 years ago

Updates to bootscripts

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