Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
22f594c8
Commit
22f594c8
authored
Oct 12, 2015
by
Ad Schellevis
Committed by
Franco Fichtner
Oct 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(captiveportal, new) add rc enable/disable config template
(cherry picked from commit
1f66fa6a
)
parent
ad80a5a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
+TARGETS
...pnsense/service/templates/OPNsense/Captiveportal/+TARGETS
+1
-1
rc.conf.d
...nsense/service/templates/OPNsense/Captiveportal/rc.conf.d
+10
-0
No files found.
src/opnsense/service/templates/OPNsense/Captiveportal/+TARGETS
View file @
22f594c8
#
rc.conf.d:/etc/rc.conf.d/captiveportal
rc.conf.d:/etc/rc.conf.d/captiveportal
captiveportal.conf:/usr/local/etc/captiveportal.conf
lighttpd-api-dispatcher.conf:/var/etc/lighttpd-api-dispatcher.conf
lighttpd-zone.conf:/var/etc/lighttpd-cp-zone-[OPNsense.captiveportal.zones.zone.%.zoneid].conf
src/opnsense/service/templates/OPNsense/Captiveportal/rc.conf.d
0 → 100644
View file @
22f594c8
{%
set
isEnabled
=[]
%}
{%
if
helpers
.
exists
(
'
OPNsense
.
captiveportal
.
zones
.
zone
'
)
%}
{%
for
cpZone
in
helpers
.
toList
(
'
OPNsense
.
captiveportal
.
zones
.
zone
'
)
%}
{%
if
cpZone
.
enabled
|
default
(
'0'
)
==
'1'
%}
{%
do
isEnabled
.
append
(
cpZone
)
%}
{%
endif
%}
{%
endfor
%}
{%
endif
%}
captiveportal_enable
=
"{% if isEnabled %}YES{% else %}NO{% endif %}"
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