diff --git a/Makefile b/Makefile index 8ef370b850bbdecb33f99c0cb49cc11962ecf43c..84ff7cf7713e549667acd34118d60983e8b74511 100755 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gluon-ssid-changer -PKG_VERSION:=1 +PKG_VERSION:=2 +PKG_RELEASE:=$(GLUON_BRANCH) PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) @@ -10,12 +11,20 @@ include $(INCLUDE_DIR)/package.mk define Package/gluon-ssid-changer SECTION:=gluon CATEGORY:=Gluon - TITLE:=SSID Changer + TITLE:=changes the SSID to an Offline-SSID so clients don't connect to an offline WiFi DEPENDS:=+gluon-core +micrond endef +define Package/gluon-ssid-changer/description + Script to change the SSID to an Offline-SSID when there is no connection to + any gateway. This SSID is generated from the nodes hostname with the first + and last part of the nodename to allow observers to recognise which node is down. + The script is called once a minute by micron.d and it will change from online to + offline-SSID maximum once a day +endef + define Build/Prepare - mkdir -p $(PKG_BUILD_DIR) + mkdir -p $(PKG_BUILD_DIR) endef define Build/Configure @@ -25,8 +34,7 @@ define Build/Compile endef define Package/gluon-ssid-changer/install - $(CP) ./files/* $(1)/ + $(CP) ./files/* $(1)/ endef $(eval $(call BuildPackage,gluon-ssid-changer)) -