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
dc6de4ae
Commit
dc6de4ae
authored
Apr 27, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inc: remove stale and inconsistent `use_mfs_tmpvar' code
parent
1ad20825
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 deletions
+0
-12
rrd.inc
src/etc/inc/rrd.inc
+0
-4
services.inc
src/etc/inc/services.inc
+0
-8
No files found.
src/etc/inc/rrd.inc
View file @
dc6de4ae
...
...
@@ -75,10 +75,6 @@ function restore_rrd()
unset
(
$output
);
@
unlink
(
$xml_file
);
}
/* If this backup is still there on a full install, but we aren't going to use ram disks, remove the archive since this is a transition. */
if
(
!
isset
(
$config
[
'system'
][
'use_mfs_tmpvar'
]))
{
@
unlink
(
'/conf/rrd.tgz'
);
}
return
true
;
}
return
false
;
...
...
src/etc/inc/services.inc
View file @
dc6de4ae
...
...
@@ -386,10 +386,6 @@ function services_dhcpdv4_configure()
log_error
(
sprintf
(
gettext
(
'DHCP leases restore failed exited with %1$s, the error is: %2$s%3$s'
),
$dhcpreturn
,
$dhcprestore
,
"
\n
"
));
}
}
/* If this backup is still there on a full install, but we aren't going to use ram disks, remove the archive since this is a transition. */
if
(
!
isset
(
$config
[
'system'
][
'use_mfs_tmpvar'
]))
{
@
unlink
(
'/conf/dhcpleases.tgz'
);
}
}
$syscfg
=
$config
[
'system'
];
...
...
@@ -1006,10 +1002,6 @@ function services_dhcpdv6_configure($blacklist = array())
}
}
/* If this backup is still there on a full install, but we aren't going to use ram disks, remove the archive since this is a transition. */
if
(
isset
(
$config
[
'system'
][
'use_mfs_tmpvar'
]))
{
@
unlink
(
'/conf/dhcp6leases.tgz'
);
}
}
$syscfg
=
$config
[
'system'
];
...
...
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