summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-22 02:50:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-22 02:50:13 +0000
commitb3d44462f479cb0174dfdd9c33d8bccc31ecc238 (patch)
treeb0651574418d744667b24bc1822a23ec69bf0bbd /usr/local/www
parent920f27e3e62493bc0babab7d475e6cc15a095a24 (diff)
downloadpfsense-b3d44462f479cb0174dfdd9c33d8bccc31ecc238.zip
pfsense-b3d44462f479cb0174dfdd9c33d8bccc31ecc238.tar.gz
Process system_set_harddisk_standby() instead of requiring a reboot. Doh!
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/system_advanced.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index 1f99fac..033d8b7 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -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();
OpenPOWER on IntegriCloud