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

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

Updates to bootscripts

  • Property mode set to 100755
File size: 487 bytes
RevLine 
[a44b91b]1#!/bin/ash
2
3# System Shutdown Script
4#
5
[381c53b]6. /etc/rc.d/init.d/functions
[a44b91b]7
8echo
9echo "System is going down for reboot or halt now."
10echo
11
12
[b9cef84]13echo "Starting stop scripts."
[a44b91b]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.