diff options
author | Florian Eckert <fe@dev.tdt.de> | 2018-09-24 14:20:29 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-09-25 10:16:03 +0200 |
commit | 61a59949009993a6b1d634ecbce765b37c4c2560 (patch) | |
tree | d77d285abcc690ff4a1893d897dbcb1c51fa36a3 /package/base-files/files | |
parent | 9f105ce8c8ec66c1fbb808fb04afb361513950ee (diff) | |
download | upstream-61a59949009993a6b1d634ecbce765b37c4c2560.tar.gz upstream-61a59949009993a6b1d634ecbce765b37c4c2560.tar.bz2 upstream-61a59949009993a6b1d634ecbce765b37c4c2560.zip |
base-files: add network_get_metric() to /lib/functions/network.sh
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
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 d7fd2dea57..4fdcb66302 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 metric of the given logical interface +# 1: destination variable +# 2: interface +network_get_metric() { __network_ifstatus "$1" "$2" ".metric"; } + # determine the layer 3 linux network device of the given logical interface # 1: destination variable # 2: interface |