summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-01-21 10:58:25 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-01-21 10:58:34 -0500
commite9bcc5fef63a5cbe8bd91785cb1cab90197346ea (patch)
tree62d0ec7a10c98023215c4b059160362404cacb84
parentbb8f186eefa756694defbf127b699a3460abfe8c (diff)
downloadpfsense-e9bcc5fef63a5cbe8bd91785cb1cab90197346ea.zip
pfsense-e9bcc5fef63a5cbe8bd91785cb1cab90197346ea.tar.gz
Lock firmwarelock when upgrading packages
-rwxr-xr-xetc/rc.bootup2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 6333ab8..ab4a5b5 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -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');
}
}
}
OpenPOWER on IntegriCloud