Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
firmware
Gluon SSID Changer
Commits
a1a0dd80
Commit
a1a0dd80
authored
Jul 21, 2018
by
rubo77
Browse files
rework of GluonShellDiet and fix translation functionality
parent
222b96a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
gluon-ssid-changer/Makefile
View file @
a1a0dd80
include
$(TOPDIR)/rules.mk
PKG_NAME
:=
gluon-ssid-changer
PKG_VERSION
:=
4
PKG_BUILD_DIR
:=
$(BUILD_DIR)
/
$(PKG_NAME)
PKG_VERSION
:=
5
include
$(TOPDIR)/../package/gluon.mk
PKG_CONFIG_DEPENDS
+=
$(GLUON_I18N_CONFIG)
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
DEPENDS
:=
+gluon-core +micrond
endef
...
...
@@ -26,28 +19,18 @@ define Package/$(PKG_NAME)/description
timeframe.
endef
define
Build/Prepare
mkdir
-p
$(PKG_BUILD_DIR)
endef
define
Build/Configure
endef
define
Build/Compile
$(call
GluonBuild
I18N,$(PKG_NAME),i18n
)
$(call
GluonSrcDiet,./luasrc,
$(PKG_BUILD_DIR)/
luadest/)
$(call
Gluon
/
Build
/Compile
)
./gluonShellDiet.sh
shsrc/ssid-changer.sh
>
$(PKG_BUILD_DIR)/
ssid-changer.sh
endef
define
Package/$(PKG_NAME)/install
$(CP)
./files/*
$(1)/
$(CP)
$(PKG_BUILD_DIR)/luadest/*
$(1)/
./gluonShellDiet.sh
$(1)/lib/gluon/ssid-changer/ssid-changer.sh
$(call
GluonInstallI18N,$(PKG_NAME),$(1))
endef
$(Gluon/Build/Install)
define
Package/$(PKG_NAME)/postinst
#!/bin/sh
$(call
GluonCheckSite,check_site.lua)
$(INSTALL_DIR)
$(1)/lib/gluon/ssid-changer
$(INSTALL_BIN)
$(PKG_BUILD_DIR)/ssid-changer.sh
$(1)/lib/gluon/ssid-changer/
endef
$(eval
$(call
BuildPackage,$(PKG_NAME)))
$(eval
$(call
BuildPackageGluon,$(PKG_NAME)))
gluon-ssid-changer/gluonShellDiet.sh
View file @
a1a0dd80
...
...
@@ -2,4 +2,4 @@
# 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
gluon-ssid-changer/
files/lib/gluon/ssid-changer
/ssid-changer.sh
→
gluon-ssid-changer/
shsrc
/ssid-changer.sh
View file @
a1a0dd80
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment