id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc
262	luci_fixtime doesn't work right on mini_fo (with patch)	heath@…		"There's a problem with mini_fo where if you 'touch' a file which resides in the /rom but not the /overlay, the timestamp of the file doesn't actually change. In a new openwrt installation, the luci_fixtime script fails to update its own timestamp due to this issue.

As a workaround, the included patch simply adds 'cat /dev/null >> luci_fixtime'. Since the file gets opened for updating, the filesystem makes a copy of the file into /overlay which allows subsequent 'touch'es to actually modify the timestamp. The touch command is still required, because the 'cat' command doesn't actually write anything into the file.

{{{
--- /rom/etc/init.d/luci_fixtime        Fri Mar 26 21:44:56 2010
+++ /etc/init.d/luci_fixtime    Fri Jul  1 15:01:05 2011
@@ -12,5 +12,6 @@
 }

 stop() {
+       [[ -w /etc/init.d/luci_fixtime ]] && cat /dev/null >> /etc/init.d/luci_fixtime
        [[ -w /etc/init.d/luci_fixtime ]] && touch /etc/init.d/luci_fixtime
 }
}}}"	defect	closed	minor		LuCI Initscripts	fixed	luci_fixtime	
