/sbin/ldconfig
#
-# Recover the time, if there is a time file
+# Recover the time, if there is a time file (first boot only)
+# If not, set system clock from hardware clock
#
if test -e /etc/timestamp
then
date -s `cat /etc/timestamp`
+ mv -f /etc/timestamp /etc/timestamp.done
+ /etc/init.d/hwclock.sh start
+else
+ /etc/init.d/hwclock.sh stop
fi
: exit 0
#! /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
+#FIXME readd timestamp handling for systems where RTC doesn't survive a reboot
+/etc/init.d/hwclock stop
DEPENDS = "makedevs"
RDEPENDS = "makedevs"
LICENSE = "GPL"
-PR = "r96"
+PR = "r97"
SRC_URI = "file://halt \
file://ramdisk \
file://device_table.txt \
file://populate-volatile.sh \
file://volatiles \
- file://save-rtc.sh"
+ file://save-rtc.sh"
SRC_URI_append_arm = " file://alignment.sh"