diff options
Diffstat (limited to 'contrib/package/luci-addons/dist')
-rw-r--r-- | contrib/package/luci-addons/dist/etc/init.d/inittime | 6 |
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 000000000..70ddb5ca9 --- /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')))" +} |