summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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