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


Ignore:
Timestamp:
Sep 7, 2009, 4:19:14 AM (15 years ago)
Author:
Maarten Lankhorst <mlankhorst@…>
Branches:
master
Children:
2e856a4
Parents:
b71d8ca
Message:

bootscripts: Ignore unknown executables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/clfs/rc.d/shutdown

    rb71d8ca r8172859  
    2020done
    2121
    22 echo -n "Syncing hardware clock to system clock:"
    23 hwclock --systohc --utc
    24 check_status
     22if [ -x /sbin/hwclock ]; then
     23        echo -n "Syncing hardware clock to system clock:"
     24        hwclock --systohc --utc
     25        check_status
     26fi
    2527
    26 echo -n "Disabling swap space: "
    27 swapoff -a
    28 check_status
     28if [ -x /sbin/swapoff ]; then
     29        echo -n "Disabling swap space: "
     30        swapoff -a
     31        check_status
     32fi
    2933
    3034echo -n "Syncing all filesystems: "
Note: See TracChangeset for help on using the changeset viewer.