diff options
author | Koen Kooi <koen@openembedded.org> | 2006-07-04 17:42:49 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-07-04 17:42:49 +0000 |
commit | 3fbcf379bbd88204d7dd396415bbb65346feeaab (patch) | |
tree | 9a74ccf298a095cc74eb6bcc2cb878f98c5b548d /packages/initscripts/initscripts-1.0 | |
parent | 7fd16b8fe80ee1707595b3a6026e9026a0717502 (diff) | |
parent | 86d9211f52171f3367ce974b997e16864e20118d (diff) |
merge of 8f7f4f1a6f08da91c5fe2312650063893394888b
and f69ed55f40216d16d8f1cb7559d13b46385991b2
Diffstat (limited to 'packages/initscripts/initscripts-1.0')
-rwxr-xr-x | packages/initscripts/initscripts-1.0/halt | 6 | ||||
-rwxr-xr-x | packages/initscripts/initscripts-1.0/reboot | 6 | ||||
-rw-r--r-- | packages/initscripts/initscripts-1.0/save-rtc.sh | 16 |
3 files changed, 16 insertions, 12 deletions
diff --git a/packages/initscripts/initscripts-1.0/halt b/packages/initscripts/initscripts-1.0/halt index aa1769606a..d8cab222ca 100755 --- a/packages/initscripts/initscripts-1.0/halt +++ b/packages/initscripts/initscripts-1.0/halt @@ -7,12 +7,6 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin -# Update the timestamp, if there is already one -if test -e /etc/timestamp -then - date +%2m%2d%2H%2M%Y > /etc/timestamp -fi - # See if we need to cut the power. if test -x /etc/init.d/ups-monitor then diff --git a/packages/initscripts/initscripts-1.0/reboot b/packages/initscripts/initscripts-1.0/reboot index 7f95255bd9..56278199be 100755 --- a/packages/initscripts/initscripts-1.0/reboot +++ b/packages/initscripts/initscripts-1.0/reboot @@ -7,11 +7,5 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin -# Update the timestamp, if there is one -if test -e /etc/timestamp -then - date +%2m%2d%2H%2M%Y > /etc/timestamp -fi - echo -n "Rebooting... " reboot -d -f -i diff --git a/packages/initscripts/initscripts-1.0/save-rtc.sh b/packages/initscripts/initscripts-1.0/save-rtc.sh new file mode 100644 index 0000000000..d06aa6d569 --- /dev/null +++ b/packages/initscripts/initscripts-1.0/save-rtc.sh @@ -0,0 +1,16 @@ +#! /bin/sh +# +# Copyright Matthias Hentges <devel@hentges.net> (c) 2006 +# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license) +# +# Filename: save-rtc.sh +# Date: 03-Jul-06 + + +# Update the timestamp, if there is already one +if test -e /etc/timestamp +then + echo "Will restore RCT from /etc/timestamp on next boot" + echo "Delete that file to disable this feature." + date +%2m%2d%2H%2M%Y > /etc/timestamp +fi |