mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Backport fix for enable buttom from master/HEAD
This commit is contained in:
parent
49c2af5c2c
commit
75ba86da78
@ -89,11 +89,9 @@ if ($_POST && !file_exists($d_firmwarelock_path)) {
|
||||
}
|
||||
if ($mode) {
|
||||
if ($mode == "enable") {
|
||||
exec_rc_script("/etc/rc.firmware enable");
|
||||
conf_mount_rw();
|
||||
touch($d_fwupenabled_path);
|
||||
} else if ($mode == "disable") {
|
||||
exec_rc_script("/etc/rc.firmware disable");
|
||||
conf_mount_ro();
|
||||
if (file_exists($d_fwupenabled_path))
|
||||
unlink($d_fwupenabled_path);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user