summaryrefslogtreecommitdiff
path: root/packages/initscripts/files/save-rtc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/initscripts/files/save-rtc.sh')
-rw-r--r--packages/initscripts/files/save-rtc.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/initscripts/files/save-rtc.sh b/packages/initscripts/files/save-rtc.sh
new file mode 100644
index 0000000000..e786073051
--- /dev/null
+++ b/packages/initscripts/files/save-rtc.sh
@@ -0,0 +1,5 @@
+#! /bin/sh
+/etc/init.d/hwclock.sh stop
+
+# Update the timestamp
+date +%2m%2d%2H%2M%Y > /etc/timestamp