From 9e780ed5f7b834e06ec5c82323731917aef4ee53 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 28 Jun 2019 12:59:19 +0200 Subject: base-files: add network_get_uptime() to /lib/functions/network.sh Add missing ubus api call for uptime value. Signed-off-by: Florian Eckert --- package/base-files/files/lib/functions/network.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package/base-files/files/lib/functions/network.sh') diff --git a/package/base-files/files/lib/functions/network.sh b/package/base-files/files/lib/functions/network.sh index 4fdcb66302..6b946b9f80 100644 --- a/package/base-files/files/lib/functions/network.sh +++ b/package/base-files/files/lib/functions/network.sh @@ -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 -- cgit v1.2.3