diff options
author | Matthias Hentges <oe@hentges.net> | 2006-07-03 03:24:05 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-07-03 03:24:05 +0000 |
commit | 0634f7bc2185bf1c2caac4eee98473af8b569048 (patch) | |
tree | fa5ae34f4d9734a312754be926a48d3b0218a4a3 /packages/initscripts/initscripts-1.0/save-rtc.sh | |
parent | 602af584cc98ccfa10ca30cd850ec0ac92fe8ac0 (diff) |
initscripts: Store RTC in /etc/timestamp before mounting root ro, fixing part of OE bug #1055
Diffstat (limited to 'packages/initscripts/initscripts-1.0/save-rtc.sh')
-rw-r--r-- | packages/initscripts/initscripts-1.0/save-rtc.sh | 16 |
1 files changed, 16 insertions, 0 deletions
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 |