mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
inc: yeah or we could call /bin/sync
This commit is contained in:
parent
2f00e12e0b
commit
a982fbc16b
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user