summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/luci-addons/dist
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-01 16:55:59 +0000
committerSteven Barth <steven@midlink.org>2008-06-01 16:55:59 +0000
commite9a11d9c98af8f0d03642cbd76d3c79a977048ba (patch)
treeb12c63a236ce28170ccba9e01fa8fcfa054f7668 /contrib/package/luci-addons/dist
parent47b62843fc944e8bfafa78348715bac0b948eb08 (diff)
* Added time initialization init.d script to luci-addons
Diffstat (limited to 'contrib/package/luci-addons/dist')
-rw-r--r--contrib/package/luci-addons/dist/etc/init.d/inittime6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/package/luci-addons/dist/etc/init.d/inittime b/contrib/package/luci-addons/dist/etc/init.d/inittime
new file mode 100644
index 0000000000..70ddb5ca9d
--- /dev/null
+++ b/contrib/package/luci-addons/dist/etc/init.d/inittime
@@ -0,0 +1,6 @@
+#!/bin/sh /etc/rc.common
+START=30
+
+start() {
+ lua -e "os.execute('date -s '..os.date('%m%d%H%M%Y', require('posix').stat('$0', 'mtime')))"
+}