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
8f2449cb
Commit
8f2449cb
authored
Mar 24, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix config issue in initial setup wizard
parent
0dccde43
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
14 deletions
+16
-14
pfsense-utils.inc
src/etc/inc/pfsense-utils.inc
+2
-2
rc.reload_all
src/etc/rc.reload_all
+0
-1
setup_wizard.xml
src/www/wizards/setup_wizard.xml
+14
-11
No files found.
src/etc/inc/pfsense-utils.inc
View file @
8f2449cb
...
@@ -756,10 +756,10 @@ function reload_all_sync() {
...
@@ -756,10 +756,10 @@ function reload_all_sync() {
mwexec
(
"/usr/sbin/pwd_mkdb -d /etc/ /etc/master.passwd"
);
mwexec
(
"/usr/sbin/pwd_mkdb -d /etc/ /etc/master.passwd"
);
/* restart sshd */
/* restart sshd */
send_event
(
"service restart sshd"
);
mwexec
(
'/usr/local/etc/rc.sshd'
);
/* restart webConfigurator if needed */
/* restart webConfigurator if needed */
send_event
(
"service restart webgui"
);
mwexec
(
'/usr/local/etc/rc.restart_webgui'
);
}
}
function
setup_serial_port
(
$when
=
'save'
,
$path
=
''
)
function
setup_serial_port
(
$when
=
'save'
,
$path
=
''
)
...
...
src/etc/rc.reload_all
View file @
8f2449cb
...
@@ -37,6 +37,5 @@ require_once("captiveportal.inc");
...
@@ -37,6 +37,5 @@ require_once("captiveportal.inc");
log_error
(
"rc.reload_all: Reloading all configuration settings."
);
log_error
(
"rc.reload_all: Reloading all configuration settings."
);
reload_all_sync
();
reload_all_sync
();
sleep
(
2
);
log_error
(
"rc.reload_all: Reloading filter configuration."
);
log_error
(
"rc.reload_all: Reloading filter configuration."
);
filter_configure_sync
();
filter_configure_sync
();
src/www/wizards/setup_wizard.xml
View file @
8f2449cb
...
@@ -571,16 +571,6 @@
...
@@ -571,16 +571,6 @@
<type>
submit
</type>
<type>
submit
</type>
</field>
</field>
</fields>
</fields>
</step>
<step>
<id>
8
</id>
<title>
Reload in progress
</title>
<description>
A reload is now in progress. Please wait.
<
p
>
<
meta http-equiv="refresh" content="5; url=wizard.php?xml=setup_wizard.xml
&
stepid=8"
>
<
p
>
The wizard will redirect to the next step once the reload is completed.
</description>
<stepafterformdisplay>
<stepafterformdisplay>
<![CDATA[
<![CDATA[
$config['system']['hostname'] = $config['wizardtemp']['system']['hostname'];
$config['system']['hostname'] = $config['wizardtemp']['system']['hostname'];
...
@@ -615,8 +605,21 @@
...
@@ -615,8 +605,21 @@
}
}
unset($config['wizardtemp']);
unset($config['wizardtemp']);
write_config();
write_config();
]]>
</stepafterformdisplay>
</step>
<step>
<id>
8
</id>
<title>
Reload in progress
</title>
<description>
A reload is now in progress. Please wait.
<
p
>
<
meta http-equiv="refresh" content="5; url=wizard.php?xml=setup_wizard.xml
&
stepid=8"
>
<
p
>
The wizard will redirect to the next step once the reload is completed.
</description>
<stepafterformdisplay>
<![CDATA[
reload_all();
reload_all();
mwexec_bg("/usr/local/etc/rc.update_bogons now");
]]>
]]>
</stepafterformdisplay>
</stepafterformdisplay>
</step>
</step>
...
...
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