diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-11-26 13:10:01 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-11-26 13:10:01 +0100 |
commit | 285ef132f7d671620f269a57d2ebcff585d2a493 (patch) | |
tree | b491fad66d22765d9640b2ac543c41b6e417a95d /etc/inc/pkg-utils.inc | |
parent | 32e834ffd3b4cc6cdc6b147c91cb6dbcb0a93288 (diff) | |
download | pfsense-285ef132f7d671620f269a57d2ebcff585d2a493.zip pfsense-285ef132f7d671620f269a57d2ebcff585d2a493.tar.gz |
Rather than set the g['booting'] on globals provide a function to test for that doing the right checks
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 3bccf1b..690d2f6 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -232,7 +232,7 @@ function resync_all_package_configs($show_message = false) { if($show_message == true) echo " " . $package['name']; get_pkg_depends($package['name'], "all"); - if($g['booting'] != true) + if(platform_booting() != true) stop_service(get_pkg_internal_name($package)); sync_package($idx, true, true); if($pkg_interface == "console") @@ -1020,7 +1020,7 @@ function delete_package_xml($pkg) { foreach($pkg_config['service'] as $service) { foreach($services as $key => $instservice) { if($instservice['name'] == $service['name']) { - if($g['booting'] != true) + if(platform_booting() != true) stop_service($service['name']); if($service['rcfile']) { $prefix = RCFILEPREFIX; |