summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-07-28 15:43:52 -0400
committerjim-p <jimp@pfsense.org>2011-07-28 15:44:46 -0400
commit0124456b0c4d602adea538cee35fc67c977e9f2e (patch)
tree01e0d8ef177ea744c350caa92f017beb771ced38
parente151744e908bda123e300fc7bd6e41552b347597 (diff)
downloadpfsense-0124456b0c4d602adea538cee35fc67c977e9f2e.zip
pfsense-0124456b0c4d602adea538cee35fc67c977e9f2e.tar.gz
Rework rc.stop_packages a little. Fixes #1564
-rw-r--r--etc/inc/system.inc2
-rwxr-xr-xetc/rc.stop_packages5
2 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 4b0127a..1585b8b 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -1340,7 +1340,7 @@ function system_reboot_cleanup() {
captiveportal_radius_stop_all();
require_once("voucher.inc");
voucher_save_db_to_config();
- // mwexec("/etc/rc.stop_packages");
+ mwexec("/etc/rc.stop_packages");
}
function system_do_shell_commands($early = 0) {
diff --git a/etc/rc.stop_packages b/etc/rc.stop_packages
index f20fa04..43080e9 100755
--- a/etc/rc.stop_packages
+++ b/etc/rc.stop_packages
@@ -1,4 +1,6 @@
-#!/usr/local/bin/php -f
+#!/bin/sh
+
+/usr/local/bin/php -q <<ENDPHP
<?php
/* $Id$ */
/*
@@ -69,3 +71,4 @@ if ($shell) {
pclose($shell);
}
?>
+ENDPHP \ No newline at end of file
OpenPOWER on IntegriCloud