(legacy) remove unused system_set_harddisk_standby

This commit is contained in:
Ad Schellevis 2015-12-07 19:22:16 +01:00
parent 0d2f56bd3b
commit e955045cc8
2 changed files with 0 additions and 31 deletions

View File

@ -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;

View File

@ -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();