Commit e955045c authored by Ad Schellevis's avatar Ad Schellevis

(legacy) remove unused system_set_harddisk_standby

parent 0d2f56bd
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment