inc: yeah or we could call /bin/sync

This commit is contained in:
Franco Fichtner 2015-04-03 21:32:05 +02:00
parent 2f00e12e0b
commit a982fbc16b

View File

@ -1663,8 +1663,7 @@ function system_set_harddisk_standby()
$standby = $config['system']['harddiskstandby'];
// Check for a numeric value
if (is_numeric($standby)) {
// Sync the disk(s)
pfSense_sync();
mwexec('/bin/sync');
if (set_single_sysctl('hw.ata.standby', (int)$standby)) {
// Reinitialize ATA-drives
mwexec('/usr/local/sbin/atareinit');