mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 19:32:03 +02:00
[package] base-files: derive lease_acquired dhcp state var from /proc/uptime
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25452 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
4a77b46a0e
commit
f79493eb95
@ -103,7 +103,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"
|
||||
|
Loading…
Reference in New Issue
Block a user