[backfire] merge r25452
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 10 Feb 2011 20:05:45 +0000 (20:05 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 10 Feb 2011 20:05:45 +0000 (20:05 +0000)
SVN-Revision: 25453

package/base-files/files/usr/share/udhcpc/default.script

index 9acde829d0b76bfa0cdfd9c9085a4a38524cf6c0..c032925675807a4879a0c31fdbba96bc30781f3a 100755 (executable)
@@ -162,7 +162,7 @@ setup_interface () {
 
        # UCI State
        change_state network "$ifc" lease_server "$serverid"
-       change_state network "$ifc" lease_acquired "$(date '+%s')"
+       change_state network "$ifc" lease_acquired "$(sed -ne 's![^0-9].*$!!p' /proc/uptime)"
        change_state network "$ifc" lease_lifetime "$lease"
        [ -n "$ntpsrv" ] &&     change_state network "$ifc" lease_ntpsrv "$ntpsrv"
        [ -n "$timesvr" ] &&    change_state network "$ifc" lease_timesrv "$timesvr"