Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #262 (closed defect: fixed)

Opened 2 years ago

Last modified 22 months ago

luci_fixtime doesn't work right on mini_fo (with patch)

Reported by: heath@… Owned by:
Priority: minor Milestone:
Component: LuCI Initscripts Keywords: luci_fixtime
Cc:

Description

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
 }

Attachments

Change History

Changed 22 months ago by soma

  • status changed from new to closed
  • resolution set to fixed

applied with small change in r7481

Add/Change #262 (luci_fixtime doesn't work right on mini_fo (with patch))

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.