mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-24 23:53:12 +00:00
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>
(cherry picked from commit 9e780ed5f7
)
This commit is contained in:
parent
f011347ad2
commit
5a41c027e1
@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
|
|||||||
include $(INCLUDE_DIR)/feeds.mk
|
include $(INCLUDE_DIR)/feeds.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=200
|
PKG_RELEASE:=201
|
||||||
PKG_FLAGS:=nonshared
|
PKG_FLAGS:=nonshared
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
@ -271,6 +271,11 @@ network_is_up()
|
|||||||
# 2: interface
|
# 2: interface
|
||||||
network_get_protocol() { __network_ifstatus "$1" "$2" ".proto"; }
|
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
|
# determine the metric of the given logical interface
|
||||||
# 1: destination variable
|
# 1: destination variable
|
||||||
# 2: interface
|
# 2: interface
|
||||||
|
Loading…
Reference in New Issue
Block a user