From b3d44462f479cb0174dfdd9c33d8bccc31ecc238 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 22 Apr 2005 02:50:13 +0000 Subject: Process system_set_harddisk_standby() instead of requiring a reboot. Doh! --- usr/local/www/system_advanced.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'usr/local/www') 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(); -- cgit v1.1