endef
define Package/netjson-monitoring
- TITLE:=NetJson Monitoring
+ TITLE:=NetJSON Monitoring
CATEGORY:=Administration
SECTION:=admin
SUBMENU:=openwisp
$(1)/usr/sbin \
$(1)/usr/libexec \
$(1)/usr/lib/lua/openwisp-monitoring \
- $(1)/etc/openwisp-monitoring
+ $(1)/usr/lib/openwisp-monitoring
$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/openwisp-monitoring/files/sbin/netjson-monitoring.lua \
$(PKG_BUILD_DIR)/openwisp-monitoring/files/lib/openwisp-monitoring/wifi.lua \
$(1)/usr/lib/lua/openwisp-monitoring/wifi.lua
- $(CP) $(PKG_BUILD_DIR)/VERSION $(1)/etc/openwisp-monitoring/
+ $(CP) $(PKG_BUILD_DIR)/VERSION $(1)/usr/lib/openwisp-monitoring/
endef
$(1)/usr/sbin \
$(1)/etc/init.d \
$(1)/etc/config \
- $(1)/etc/openwisp-monitoring
+ $(1)/usr/lib/openwisp-monitoring \
+ $(1)/etc/hotplug.d/openwisp
$(INSTALL_BIN) \
$(PKG_BUILD_DIR)/openwisp-monitoring/files/monitoring.agent \
$(PKG_BUILD_DIR)/openwisp-monitoring/files/monitoring.init \
$(1)/etc/init.d/openwisp-monitoring
+ $(INSTALL_BIN) \
+ $(PKG_BUILD_DIR)/openwisp-monitoring/files/openwisp-monitoring.hotplug \
+ $(1)/etc/hotplug.d/openwisp/openwisp-monitoring
+
$(INSTALL_CONF) \
$(PKG_BUILD_DIR)/openwisp-monitoring/files/monitoring.config \
$(1)/etc/config/openwisp-monitoring