mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-04 00:14:55 +01:00
-------------------------------------------------------------------------------
* b898924 ubus call netmode sync: make the call reentrant by adding a mutex
* bd47286 add ubus sync method: push credentials to all registered repeaters
-------------------------------------------------------------------------------
commit b898924491c378ca09ab124991b27f54a336e4e9
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-03-02 15:34:22 +0100
ubus call netmode sync: make the call reentrant by adding a mutex
if this ubus call is issued twice at the same time,
only one will do the actual work and the other one will return with
an error.
Can be tested with:
while true ; do ubus call netmode sync & done
Most of the calls will fail
(Done with return code 9 == UBUS_STATUS_UNKNOWN_ERROR),
but still the maximum (continuosly) possible will run.
Base directory -> /
netmoded.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit bd472860ff1fe71ebd066813dcebe8fd99553747
Author: Ionut-Alex Oprea <ionutalexoprea@gmail.com>
Date: 2018-03-02 14:26:59 +0100
add ubus sync method: push credentials to all registered repeaters
Base directory -> /
netmoded.c | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
36 lines
849 B
Makefile
36 lines
849 B
Makefile
#
|
|
# Copyright (C) 2016 Inteno
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=inteno-netmodes
|
|
PKG_VERSION:=0.2.0
|
|
|
|
PKG_SOURCE_VERSION:=b898924491c378ca09ab124991b27f54a336e4e9
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=http://public.inteno.se:/netmoded
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/inteno-netmodes
|
|
CATEGORY:=Base system
|
|
DEPENDS:=+fping +ubus +libubox +libuci
|
|
TITLE:=Predefined Network Modes
|
|
endef
|
|
|
|
define Package/inteno-netmodes/description
|
|
Predefined Network Modes
|
|
endef
|
|
|
|
define Package/inteno-netmodes/install
|
|
$(CP) ./files/* $(1)/
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/netmoded $(1)/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,inteno-netmodes))
|