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
97cac62f
Commit
97cac62f
authored
Feb 15, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) zap merge_config_section in pfsense-utils.inc
parent
ec5d6b12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
pfsense-utils.inc
src/etc/inc/pfsense-utils.inc
+0
-21
No files found.
src/etc/inc/pfsense-utils.inc
View file @
97cac62f
...
...
@@ -172,27 +172,6 @@ function restore_config_section($section_name, $new_contents)
return
true
;
}
/*
* merge_config_section($section_name, new_contents): restore a configuration section,
* and write the configuration out
* to disk/cf. But preserve the prior
* structure if needed
*/
function
merge_config_section
(
$section_name
,
$new_contents
)
{
global
$config
;
$fname
=
'/tmp/tmp-'
.
time
();
$fout
=
fopen
(
$fname
,
"w"
);
fwrite
(
$fout
,
$new_contents
);
fclose
(
$fout
);
$section_xml
=
parse_xml_config
(
$fname
,
$section_name
);
$config
[
$section_name
]
=
$section_xml
;
unlink
(
$fname
);
write_config
(
sprintf
(
gettext
(
"Restored %s of config file (maybe from CARP partner)"
),
$section_name
));
disable_security_checks
();
return
;
}
/*
* host_firmware_version(): Return the versions used in this install
*/
...
...
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