Revision 285ef132
Added by Ermal Luçi over 10 years ago
etc/inc/pkg-utils.inc | ||
---|---|---|
232 | 232 |
if($show_message == true) |
233 | 233 |
echo " " . $package['name']; |
234 | 234 |
get_pkg_depends($package['name'], "all"); |
235 |
if($g['booting'] != true)
|
|
235 |
if(platform_booting() != true)
|
|
236 | 236 |
stop_service(get_pkg_internal_name($package)); |
237 | 237 |
sync_package($idx, true, true); |
238 | 238 |
if($pkg_interface == "console") |
... | ... | |
1020 | 1020 |
foreach($pkg_config['service'] as $service) { |
1021 | 1021 |
foreach($services as $key => $instservice) { |
1022 | 1022 |
if($instservice['name'] == $service['name']) { |
1023 |
if($g['booting'] != true)
|
|
1023 |
if(platform_booting() != true)
|
|
1024 | 1024 |
stop_service($service['name']); |
1025 | 1025 |
if($service['rcfile']) { |
1026 | 1026 |
$prefix = RCFILEPREFIX; |
Also available in: Unified diff
Rather than set the g['booting'] on globals provide a function to test for that doing the right checks