diff options
author | Florian Eckert <fe@dev.tdt.de> | 2019-06-28 12:59:19 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-06-29 21:00:58 +0200 |
commit | 9e780ed5f7b834e06ec5c82323731917aef4ee53 (patch) | |
tree | b4961870dd4423cf2cd0a77f351fb5a20f46204e /package/base-files/files | |
parent | c2e819537f9538f58e94d3fff2b99b4f2493e9d8 (diff) | |
download | upstream-9e780ed5f7b834e06ec5c82323731917aef4ee53.tar.gz upstream-9e780ed5f7b834e06ec5c82323731917aef4ee53.tar.bz2 upstream-9e780ed5f7b834e06ec5c82323731917aef4ee53.zip |
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>
Diffstat (limited to 'package/base-files/files')
-rw-r--r-- | package/base-files/files/lib/functions/network.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 |