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
e955045c
Commit
e955045c
authored
Dec 07, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) remove unused system_set_harddisk_standby
parent
0d2f56bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
31 deletions
+0
-31
system.inc
src/etc/inc/system.inc
+0
-28
rc.bootup
src/etc/rc.bootup
+0
-3
No files found.
src/etc/inc/system.inc
View file @
e955045c
...
...
@@ -1718,34 +1718,6 @@ function system_console_configure()
setup_serial_port
();
}
function
system_set_harddisk_standby
()
{
global
$config
;
if
(
isset
(
$config
[
'system'
][
'harddiskstandby'
]))
{
if
(
file_exists
(
"/var/run/booting"
))
{
echo
gettext
(
'Setting hard disk standby... '
);
}
$standby
=
$config
[
'system'
][
'harddiskstandby'
];
// Check for a numeric value
if
(
is_numeric
(
$standby
))
{
mwexec
(
'/bin/sync'
);
if
(
set_single_sysctl
(
'hw.ata.standby'
,
(
int
)
$standby
))
{
// Reinitialize ATA-drives
mwexec
(
'/usr/local/sbin/atareinit'
);
if
(
file_exists
(
"/var/run/booting"
))
{
echo
gettext
(
"done."
)
.
"
\n
"
;
}
}
else
if
(
file_exists
(
"/var/run/booting"
))
{
echo
gettext
(
"failed!"
)
.
"
\n
"
;
}
}
else
if
(
file_exists
(
"/var/run/booting"
))
{
echo
gettext
(
"failed!"
)
.
"
\n
"
;
}
}
}
function
system_setup_sysctl
()
{
global
$config
;
...
...
src/etc/rc.bootup
View file @
e955045c
...
...
@@ -310,9 +310,6 @@ $ipsec_dynamic_hosts = vpn_ipsec_configure();
/* start SNMP service */
services_snmpd_configure
();
/* power down hard drive if needed/set */
system_set_harddisk_standby
();
/* lock down console if necessary */
reload_ttys
();
...
...
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