Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gluon SSID Changer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
firmware
Gluon SSID Changer
Commits
af7dcfcf
Commit
af7dcfcf
authored
7 years ago
by
rubo77
Browse files
Options
Downloads
Patches
Plain Diff
Anpassungen an 2018.1.x
Siehe
https://github.com/freifunk-gluon/gluon/commit/7ccdacd294e5fcb6718f806543bb2620c02c9ddb
parent
c6dc54f7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+2
-0
2 additions, 0 deletions
README.md
gluon-ssid-changer/check_site.lua
+8
-10
8 additions, 10 deletions
gluon-ssid-changer/check_site.lua
gluon-ssid-changer/luasrc/lib/gluon/upgrade/500-ssid-changer
+4
-4
4 additions, 4 deletions
gluon-ssid-changer/luasrc/lib/gluon/upgrade/500-ssid-changer
with
14 additions
and
14 deletions
README.md
+
2
−
0
View file @
af7dcfcf
gluon-ssid-changer
gluon-ssid-changer
==================
==================
_This branch of the script contains the ssid-changer version for the gluon 2018.1.x branch. For the 2017.1.x release of Gluon use the branch "lede"._
This package adds a script to change the SSID to an Offline-SSID when there is
This package adds a script to change the SSID to an Offline-SSID when there is
no connection to any gateway.
no connection to any gateway.
This SSID can be generated from the nodes hostname with the first
This SSID can be generated from the nodes hostname with the first
...
...
This diff is collapsed.
Click to expand it.
gluon-ssid-changer/check_site.lua
+
8
−
10
View file @
af7dcfcf
if
need_table
(
'ssid_changer'
,
nil
,
false
)
then
need_boolean
({
'ssid_changer'
,
'enabled'
},
false
)
need_boolean
(
'ssid_changer.enabled'
,
false
)
need_number
({
'ssid_changer'
,
'switch_timeframe'
},
false
)
need_number
(
'ssid_changer.switch_timeframe'
,
false
)
need_number
({
'ssid_changer'
,
'first'
},
false
)
need_number
(
'ssid_changer.first'
,
false
)
need_string
({
'ssid_changer'
,
'prefix'
},
false
)
need_string
(
'ssid_changer.prefix'
,
false
)
need_one_of
({
'ssid_changer'
,
'suffix'
},
{
'nodename'
,
'mac'
,
'none'
},
false
)
need_string
(
'ssid_changer.suffix'
,
false
)
if
need_boolean
({
'ssid_changer'
,
'tq_limit_enabled'
},
false
)
then
if
need_boolean
(
'ssid_changer.tq_limit_enabled'
,
false
)
then
need_number
({
'ssid_changer'
,
'tq_limit_max'
},
false
)
need_number
(
'ssid_changer.tq_limit_max'
,
false
)
need_number
({
'ssid_changer'
,
'tq_limit_min'
},
false
)
need_number
(
'ssid_changer.tq_limit_min'
,
false
)
end
end
end
This diff is collapsed.
Click to expand it.
gluon-ssid-changer/luasrc/lib/gluon/upgrade/500-ssid-changer
+
4
−
4
View file @
af7dcfcf
#!/usr/bin/lua
#!/usr/bin/lua
local
site
=
require
'gluon.site
_config
'
local
site
=
require
'gluon.site'
local
uci
=
require
(
'simple-uci'
).
cursor
()
local
uci
=
require
(
'simple-uci'
).
cursor
()
...
@@ -13,9 +13,9 @@ elseif not uci:get('ssid-changer', 'settings', 'enabled') then
...
@@ -13,9 +13,9 @@ elseif not uci:get('ssid-changer', 'settings', 'enabled') then
first
=
site
.
ssid_changer
.
first
or
'5'
,
first
=
site
.
ssid_changer
.
first
or
'5'
,
prefix
=
site
.
ssid_changer
.
prefix
or
'FF_Offline_'
,
prefix
=
site
.
ssid_changer
.
prefix
or
'FF_Offline_'
,
suffix
=
site
.
ssid_changer
.
suffix
or
'nodename'
,
suffix
=
site
.
ssid_changer
.
suffix
or
'nodename'
,
tq_limit_enabled
=
site
.
ssid_changer
.
tq_limit_enabled
or
'0'
,
tq_limit_enabled
=
site
.
ssid_changer
.
tq_limit_enabled
or
false
,
tq_limit_max
=
site
.
ssid_changer
.
tq_limit_max
or
'
45
'
,
tq_limit_max
=
site
.
ssid_changer
.
tq_limit_max
or
45
,
tq_limit_min
=
site
.
ssid_changer
.
tq_limit_min
or
'
35
'
,
tq_limit_min
=
site
.
ssid_changer
.
tq_limit_min
or
35
,
})
})
uci
:
save
(
'ssid-changer'
)
uci
:
save
(
'ssid-changer'
)
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment