mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Include pkg-utils.inc
This commit is contained in:
parent
72b7aa4a8e
commit
0c78d2d084
@ -384,6 +384,7 @@ if (file_exists("/sbin/shutdown.old"))
|
||||
/* Resync / Reinstall packages if need be */
|
||||
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") {
|
||||
pkg_reinstall_all();
|
||||
unlink('/conf/needs_package_sync');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user