Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ffbs
ffbs-gluon
Commits
8b083d49
Commit
8b083d49
authored
8 years ago
by
Christof Schulze
Browse files
Options
Downloads
Patches
Plain Diff
gluon-core: check_site.lua: fix indentation
parent
e2e910fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/gluon-core/check_site.lua
+20
-20
20 additions, 20 deletions
package/gluon-core/check_site.lua
with
20 additions
and
20 deletions
package/gluon-core/check_site.lua
+
20
−
20
View file @
8b083d49
...
...
@@ -2,16 +2,16 @@ need_string 'site_code'
need_string
'site_name'
if
need_table
(
'opkg'
,
nil
,
false
)
then
need_string
(
'opkg.lede'
,
false
)
need_string
(
'opkg.lede'
,
false
)
function
check_repo
(
k
,
_
)
-- this is not actually a uci name, but using the same naming rules here is fine
assert_uci_name
(
k
)
function
check_repo
(
k
,
_
)
-- this is not actually a uci name, but using the same naming rules here is fine
assert_uci_name
(
k
)
need_string
(
string.format
(
'opkg.extra[%q]'
,
k
))
end
need_string
(
string.format
(
'opkg.extra[%q]'
,
k
))
end
need_table
(
'opkg.extra'
,
check_repo
,
false
)
need_table
(
'opkg.extra'
,
check_repo
,
false
)
end
need_string
(
'hostname_prefix'
,
false
)
...
...
@@ -23,19 +23,19 @@ need_string_match('prefix6', '^[%x:]+/%d+$')
for
_
,
config
in
ipairs
({
'wifi24'
,
'wifi5'
})
do
if
need_table
(
config
,
nil
,
false
)
then
need_string
(
'regdom'
)
-- regdom is only required when wifi24 or wifi5 is configured
need_number
(
config
..
'.channel'
)
local
rates
=
{
1000
,
2000
,
5500
,
6000
,
9000
,
11000
,
12000
,
18000
,
24000
,
36000
,
48000
,
54000
}
local
supported_rates
=
need_array_of
(
config
..
'.supported_rates'
,
rates
,
false
)
if
supported_rates
then
need_array_of
(
config
..
'.basic_rate'
,
supported_rates
,
true
)
else
need_array_of
(
config
..
'.basic_rate'
,
rates
,
false
)
end
end
if
need_table
(
config
,
nil
,
false
)
then
need_string
(
'regdom'
)
-- regdom is only required when wifi24 or wifi5 is configured
need_number
(
config
..
'.channel'
)
local
rates
=
{
1000
,
2000
,
5500
,
6000
,
9000
,
11000
,
12000
,
18000
,
24000
,
36000
,
48000
,
54000
}
local
supported_rates
=
need_array_of
(
config
..
'.supported_rates'
,
rates
,
false
)
if
supported_rates
then
need_array_of
(
config
..
'.basic_rate'
,
supported_rates
,
true
)
else
need_array_of
(
config
..
'.basic_rate'
,
rates
,
false
)
end
end
end
need_boolean
(
'poe_passthrough'
,
false
)
...
...
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