summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-04-30 15:32:47 -0400
committerjim-p <jimp@pfsense.org>2012-04-30 15:32:47 -0400
commit60dd7649d02e4a82f9d57953359bf312038f174a (patch)
tree897e75ee018c10aa727b9d03536b5210b7e424e9 /etc/inc/system.inc
parent15855fbc5bb1c59bf9efc5221df2fb051a9d27c9 (diff)
downloadpfsense-60dd7649d02e4a82f9d57953359bf312038f174a.zip
pfsense-60dd7649d02e4a82f9d57953359bf312038f174a.tar.gz
Move the stop_packages code to a function, and call the function from the shell script, and call the function directly for a reboot. Fixes #2402 and ticket #1564
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 8b13f69..cfcb20c 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -1345,7 +1345,8 @@ function system_reboot_cleanup() {
captiveportal_radius_stop_all();
require_once("voucher.inc");
voucher_save_db_to_config();
- mwexec("/etc/rc.stop_packages");
+ require_once("pkg-utils.inc");
+ stop_packages();
}
function system_do_shell_commands($early = 0) {
OpenPOWER on IntegriCloud