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
46d61594
Commit
46d61594
authored
Aug 13, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: synchronous reboot after reset
parent
11bb2b90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
config.lib.inc
src/etc/inc/config.lib.inc
+0
-2
rc.initial.defaults
src/etc/rc.initial.defaults
+1
-1
No files found.
src/etc/inc/config.lib.inc
View file @
46d61594
...
...
@@ -213,8 +213,6 @@ function write_config($desc = 'Unknown', $backup = true)
/****f* config/reset_factory_defaults
* NAME
* reset_factory_defaults - Reset the system to its default configuration.
* RESULT
* integer - indicates completion
******/
function
reset_factory_defaults
(
$sync
=
true
)
{
...
...
src/etc/rc.initial.defaults
View file @
46d61594
...
...
@@ -43,7 +43,7 @@ Do you want to proceed {$yes_no_prompt}
EOD;
if
(
strcasecmp
(
chop
(
fgets
(
$fp
)),
'y'
)
==
0
)
{
reset_factory_defaults
();
reset_factory_defaults
(
true
);
}
fclose
(
$fp
);
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