Skip to content
Snippets Groups Projects
Commit a1a0dd80 authored by rubo77's avatar rubo77
Browse files

rework of GluonShellDiet and fix translation functionality

parent 222b96a3
No related branches found
No related tags found
No related merge requests found
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-ssid-changer PKG_NAME:=gluon-ssid-changer
PKG_VERSION:=4 PKG_VERSION:=5
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(TOPDIR)/../package/gluon.mk include $(TOPDIR)/../package/gluon.mk
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
define Package/$(PKG_NAME) define Package/$(PKG_NAME)
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=changes the SSID to an Offline-SSID so clients don't connect to an offline WiFi TITLE:=changes the SSID to an Offline-SSID so clients don't connect to an offline WiFi
DEPENDS:=+gluon-core +micrond DEPENDS:=+gluon-core +micrond
endef endef
...@@ -26,28 +19,18 @@ define Package/$(PKG_NAME)/description ...@@ -26,28 +19,18 @@ define Package/$(PKG_NAME)/description
timeframe. timeframe.
endef endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Configure
endef
define Build/Compile define Build/Compile
$(call GluonBuildI18N,$(PKG_NAME),i18n) $(call Gluon/Build/Compile)
$(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/) ./gluonShellDiet.sh shsrc/ssid-changer.sh > $(PKG_BUILD_DIR)/ssid-changer.sh
endef endef
define Package/$(PKG_NAME)/install define Package/$(PKG_NAME)/install
$(CP) ./files/* $(1)/ $(Gluon/Build/Install)
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
./gluonShellDiet.sh $(1)/lib/gluon/ssid-changer/ssid-changer.sh
$(call GluonInstallI18N,$(PKG_NAME),$(1))
endef
define Package/$(PKG_NAME)/postinst $(INSTALL_DIR) $(1)/lib/gluon/ssid-changer
#!/bin/sh $(INSTALL_BIN) $(PKG_BUILD_DIR)/ssid-changer.sh $(1)/lib/gluon/ssid-changer/
$(call GluonCheckSite,check_site.lua)
endef endef
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackageGluon,$(PKG_NAME)))
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
# This script requires a file as argument in which it will remove all comment lines that start with a hash '#' # This script requires a file as argument in which it will remove all comment lines that start with a hash '#'
sed -i '/^\s*\#[^!].*/d; /^\s*\#$/d' $1 sed '/^\s*\#[^!].*/d; /^\s*\#$/d' $1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment