mirror of
https://git.yoctoproject.org/poky
synced 2026-06-12 04:40:24 +00:00
initscripts: Sync with OE, primarily for better /etc/timestamp handling
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2650 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
+3
-14
@@ -1,16 +1,5 @@
|
||||
#! /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
|
||||
/etc/init.d/hwclock.sh stop
|
||||
|
||||
|
||||
# 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
|
||||
# Update the timestamp
|
||||
date +%2m%2d%2H%2M%Y > /etc/timestamp
|
||||
|
||||
Reference in New Issue
Block a user