aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/initscripts/files
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2010-10-03 04:54:19 +0000
committerKhem Raj <raj.khem@gmail.com>2010-10-06 15:23:08 -0700
commit4085252bf8ca739b853f3702fd2396f756c1e42a (patch)
treebb7f429aef4dbcc5093744cdc264a8dbac2069e9 /recipes/initscripts/files
parent1ada6eaf91f1c28bb9cac7822d83ea079c71ede0 (diff)
downloadopenembedded-4085252bf8ca739b853f3702fd2396f756c1e42a.tar.gz
init-scripts: fix save-rtc error with date formatting on uclibc
uClibc's date does support only SUSv3 strptime[1], so the date command in save-rtc.sh fails with 'date: invalid date '%2m%2d%2H%2M2010'. 1. http://www.opengroup.org/onlinepubs/009695399/functions/strptime.html Signed-off-by: Petr Štetiar <ynezz@true.cz> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/initscripts/files')
-rw-r--r--recipes/initscripts/files/save-rtc-uclibc.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/initscripts/files/save-rtc-uclibc.sh b/recipes/initscripts/files/save-rtc-uclibc.sh
new file mode 100644
index 0000000000..8f4e587aba
--- /dev/null
+++ b/recipes/initscripts/files/save-rtc-uclibc.sh
@@ -0,0 +1,5 @@
+#! /bin/sh
+/etc/init.d/hwclock.sh stop
+
+# Update the timestamp
+date +%m%d%H%M%Y > /etc/timestamp