Changeset 5943

Show
Ignore:
Timestamp:
03/27/10 04:45:36 (3 years ago)
Author:
jow
Message:

luci-0.9: merge r5942

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/branches/luci-0.9/modules/admin-core/root/etc/init.d/luci_fixtime

    r4072 r5943  
    22 
    33START=05 
     4STOP=95 
    45 
    56start() { 
    67    cat <<' EOF' | lua -l luci.fs -l luci.util - 
    78        if (os.time() < 1000000000) then 
    8             os.execute('date -s ' .. os.date('%m%d%H%M%Y', luci.fs.mtime("/etc/init.d/luci_fixtime"))) 
     9            os.execute('date -s ' .. os.date('%Y%m%d%H%M', luci.fs.mtime("/etc/init.d/luci_fixtime"))) 
    910        end 
    1011    EOF 
    1112} 
     13 
     14stop() { 
     15    [[ -w /etc/init.d/luci_fixtime ]] && touch /etc/init.d/luci_fixtime 
     16}