mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
(legacy) remove unused system_set_harddisk_standby
This commit is contained in:
parent
0d2f56bd3b
commit
e955045cc8
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user