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
c3f25de7
Commit
c3f25de7
authored
7 years ago
by
rubo77
Browse files
Options
Downloads
Patches
Plain Diff
add site.conf validy check
parent
7d35fa72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+12
-11
12 additions, 11 deletions
README.md
gluon-ssid-changer/check_site.lua
+11
-0
11 additions, 0 deletions
gluon-ssid-changer/check_site.lua
with
23 additions
and
11 deletions
README.md
+
12
−
11
View file @
c3f25de7
...
@@ -15,18 +15,19 @@ Adapt and add this block to your site.conf:
...
@@ -15,18 +15,19 @@ Adapt and add this block to your site.conf:
```
```
ssid_changer = {
ssid_changer = {
switch_timeframe = 30, -- only once every timeframe (in minutes) the SSID will change to OFFLINE
enabled = true,
-- set to 1440 to change once a day
switch_timeframe = 30, -- only once every timeframe (in minutes) the SSID will change to OFFLINE
-- set to 1 minute to change every time the router gets offline
-- set to 1440 to change once a day
first = 5, -- the first few minutes directly after reboot within which an Offline-SSID always may be activated (must be <= switch_timeframe)
-- set to 1 minute to change every time the router gets offline
prefix = 'FF_OFFLINE_', -- use something short to leave space for the nodename (no '~' allowed!)
first = 5, -- the first few minutes directly after reboot within which an Offline-SSID always may be activated (must be <= switch_timeframe)
suffix = 'nodename', -- generate the SSID with either 'nodename', 'mac' or to use only the prefix: 'none'
prefix = 'FF_OFFLINE_', -- use something short to leave space for the nodename (no '~' allowed!)
suffix = 'nodename', -- generate the SSID with either 'nodename', 'mac' or to use only the prefix: 'none'
tq_limit_enabled =
0,
-- if false, the offline SSID will only be set if there is no gateway reacheable
tq_limit_enabled =
false,
-- if false, the offline SSID will only be set if there is no gateway reacheable
-- upper and lower limit to turn the offline_ssid on and off
-- upper and lower limit to turn the offline_ssid on and off
-- in-between these two values the SSID will never be changed to prevent it from toggeling every minute.
-- in-between these two values the SSID will never be changed to prevent it from toggeling every minute.
tq_limit_max =
'
45
'
, -- upper limit, above that the online SSID will be used
tq_limit_max = 45,
-- upper limit, above that the online SSID will be used
tq_limit_min =
'
35
'
-- lower limit, below that the offline SSID will be used
tq_limit_min = 35
-- lower limit, below that the offline SSID will be used
},
},
```
```
...
...
This diff is collapsed.
Click to expand it.
gluon-ssid-changer/check_site.lua
0 → 100644
+
11
−
0
View file @
c3f25de7
if
need_table
(
'ssid_changer'
,
nil
,
false
)
then
need_boolean
(
'ssid_changer.enabled'
,
false
)
need_number
(
'ssid_changer.switch_timeframe'
,
false
)
need_number
(
'ssid_changer.first'
,
false
)
need_string
(
'ssid_changer.prefix'
,
false
)
need_string
(
'ssid_changer.suffix'
,
false
)
if
need_boolean
(
'ssid_changer.tq_limit_enabled'
,
false
)
then
need_number
(
'ssid_changer.tq_limit_max'
,
false
)
need_number
(
'ssid_changer.tq_limit_min'
,
false
)
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