From 0124456b0c4d602adea538cee35fc67c977e9f2e Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 28 Jul 2011 15:43:52 -0400 Subject: Rework rc.stop_packages a little. Fixes #1564 --- etc/inc/system.inc | 2 +- etc/rc.stop_packages | 5 ++++- 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 \ No newline at end of file -- cgit v1.1