base-files: derive lease_acquired dhcp state var from /proc/uptime
SVN-Revision: 25452
This commit is contained in:
parent
00f3abb0bb
commit
4e34fc521c
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue