mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Lock firmwarelock when upgrading packages
This commit is contained in:
parent
bb8f186eef
commit
e9bcc5fef6
@ -385,7 +385,9 @@ if(file_exists('/conf/needs_package_sync')) {
|
||||
if($config['installedpackages'] <> '' && is_array($config['installedpackages']['package'])) {
|
||||
require_once("pkg-utils.inc");
|
||||
if($g['platform'] == "pfSense" || $g['platform'] == "nanobsd") {
|
||||
mark_subsystem_dirty('firmwarelock');
|
||||
pkg_reinstall_all();
|
||||
clear_subsystem_dirty('firmwarelock');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user