diff options
Diffstat (limited to 'meta/recipes-core')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh | 5 | ||||
-rw-r--r-- | meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh index 5211824ade..ccc7f9f1f4 100755 --- a/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/bootmisc.sh | |||
@@ -66,10 +66,11 @@ fi | |||
66 | test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh start | 66 | test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh start |
67 | if test -e /etc/timestamp | 67 | if test -e /etc/timestamp |
68 | then | 68 | then |
69 | SYSTEMDATE=`date -u +%4Y%2m%2d%2H%2M` | 69 | SYSTEMDATE=`date -u +%4Y%2m%2d%2H%2M%2S` |
70 | read TIMESTAMP < /etc/timestamp | 70 | read TIMESTAMP < /etc/timestamp |
71 | if [ ${TIMESTAMP} -gt $SYSTEMDATE ]; then | 71 | if [ ${TIMESTAMP} -gt $SYSTEMDATE ]; then |
72 | date -u ${TIMESTAMP#????}${TIMESTAMP%????????} | 72 | # format the timestamp as date expects it (2m2d2H2M4Y.2S) |
73 | date -u ${TIMESTAMP:4:8}${TIMESTAMP:0:4}.${TIMESTAMP:(-2)} | ||
73 | test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh stop | 74 | test -x /etc/init.d/hwclock.sh && /etc/init.d/hwclock.sh stop |
74 | fi | 75 | fi |
75 | fi | 76 | fi |
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh b/meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh index 1f804e2374..b038fc59d4 100644 --- a/meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/save-rtc.sh | |||
@@ -10,4 +10,4 @@ | |||
10 | ### END INIT INFO | 10 | ### END INIT INFO |
11 | 11 | ||
12 | # Update the timestamp | 12 | # Update the timestamp |
13 | date -u +%4Y%2m%2d%2H%2M > /etc/timestamp | 13 | date -u +%4Y%2m%2d%2H%2M%2S > /etc/timestamp |