Changeset 292c832 in bootscripts-embedded for clfs/rc.d/shutdown


Ignore:
Timestamp:
Jan 30, 2011, 10:13:21 AM (14 years ago)
Author:
Andrew Bradford <bradfa@…>
Branches:
master
Children:
73ee2a6
Parents:
5d96f6a
Message:

Imported updates of existing bootscripts

Imported bootscripts that already existed from clfs-embedded/bootscripts
as bootscripts should be kept in this repo rather than in the
clfs-embedded repo.

The script changes have NOT BEEN TESTED! (yet)
This is part of a cleanup of bootscripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • clfs/rc.d/shutdown

    r5d96f6a r292c832  
    1010echo
    1111
     12
    1213echo "Starting stop scripts."
    1314
    14 for i in /etc/rc.d/stop/*; do
    15   if [ -x $i ]; then
    16     $i stop
    17   fi
     15for i in /etc/rc.d/stop/*
     16do
     17        if [ -x $i ]; then
     18                $i stop
     19        fi
    1820done
    1921
    20 echo -n "Syncing hardware clock to system clock:"
    21 hwclock --systohc --utc
    22 check_status
     22if [ -x /sbin/hwclock ] && [ -e /dev/rtc ]; then
     23        echo -n "Syncing hardware clock to system clock:"
     24        hwclock --systohc --utc
     25        check_status
     26fi
    2327
    24 echo -n "Disabling swap space: "
    25 swapoff -a
    26 check_status
     28if [ -x /sbin/swapoff ]; then
     29        echo -n "Disabling swap space: "
     30        swapoff -a
     31        check_status
     32fi
    2733
    2834echo -n "Syncing all filesystems: "
     
    3238echo -n "Unmounting all filesystems: "
    3339umount -a -r
     40
Note: See TracChangeset for help on using the changeset viewer.