mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Process system_set_harddisk_standby() instead of requiring a reboot. Doh!
This commit is contained in:
parent
920f27e3e6
commit
b3d44462f4
@ -152,19 +152,11 @@ if ($_POST) {
|
||||
|
||||
if (($config['system']['webgui']['certificate'] != $oldcert)
|
||||
|| ($config['system']['webgui']['private-key'] != $oldkey)) {
|
||||
// touch($d_sysrebootreqd_path);
|
||||
system_webgui_start();
|
||||
} else if (($g['platform'] == "generic-pc") && ($config['system']['harddiskstandby'] != $oldharddiskstandby)) {
|
||||
if (!$config['system']['harddiskstandby']) {
|
||||
// Reboot needed to deactivate standby due to a stupid ATA-protocol
|
||||
touch($d_sysrebootreqd_path);
|
||||
unset($config['system']['harddiskstandby']);
|
||||
} else {
|
||||
// No need to set the standby-time if a reboot is needed anyway
|
||||
system_set_harddisk_standby();
|
||||
}
|
||||
}
|
||||
|
||||
system_set_harddisk_standby();
|
||||
|
||||
$retval = 0;
|
||||
if (!file_exists($d_sysrebootreqd_path)) {
|
||||
config_lock();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user