base-files: add network_get_uptime() to /lib/functions/network.sh
Add missing ubus api call for uptime value. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
committed by
Hans Dedecker
parent
c2e819537f
commit
9e780ed5f7
@@ -271,6 +271,11 @@ network_is_up()
|
||||
# 2: interface
|
||||
network_get_protocol() { __network_ifstatus "$1" "$2" ".proto"; }
|
||||
|
||||
# determine the uptime of the given logical interface
|
||||
# 1: destination variable
|
||||
# 2: interface
|
||||
network_get_uptime() { __network_ifstatus "$1" "$2" ".uptime"; }
|
||||
|
||||
# determine the metric of the given logical interface
|
||||
# 1: destination variable
|
||||
# 2: interface
|
||||
|
||||
Reference in New Issue
Block a user