Merge r4072

This commit is contained in:
Steven Barth 2009-01-17 13:53:03 +00:00
parent 7dab1b3303
commit 19b3320a9f
2 changed files with 2 additions and 1 deletions

View file

@ -283,6 +283,7 @@ endef
define Package/luci-admin-core/install define Package/luci-admin-core/install
$(call Package/luci/install/template,$(1),modules/admin-core) $(call Package/luci/install/template,$(1),modules/admin-core)
touch $(1)/etc/init.d/luci_fixtime || true
endef endef

View file

@ -5,7 +5,7 @@ START=05
start() { start() {
cat <<' EOF' | lua -l luci.fs -l luci.util - cat <<' EOF' | lua -l luci.fs -l luci.util -
if (os.time() < 1000000000) then if (os.time() < 1000000000) then
os.execute('date -s ' .. os.date('%m%d%H%M%Y', luci.fs.mtime(luci.util.libpath()))) os.execute('date -s ' .. os.date('%m%d%H%M%Y', luci.fs.mtime("/etc/init.d/luci_fixtime")))
end end
EOF EOF
} }