diff options
author | gnhb <gnoahb@gmail.com> | 2010-06-09 21:40:12 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-06-09 21:40:12 +0700 |
commit | 5c8e8a17e3de4bcaf6fa30f0e9b13e6c0993e366 (patch) | |
tree | c6fdb90566c4623a74007e8fe96c781ad75b01a6 /usr | |
parent | e5d558bfacc9135d70d4a140c9435cf0d2a94ef6 (diff) | |
download | pfsense-5c8e8a17e3de4bcaf6fa30f0e9b13e6c0993e366.zip pfsense-5c8e8a17e3de4bcaf6fa30f0e9b13e6c0993e366.tar.gz |
Make pppoe reset work again with new <if> naming scheme.
Previous commit also moved pppoe reset functions to interfaces.inc
so we don't have to duplicate in interfaces.php and interfaces_ppps_edit.php
Also, add code so that when ppp config section gets deleted, associated <cron>
item gets deleted for pppoe-reset cron items.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/interfaces_ppps.php | 2 | ||||
-rw-r--r-- | usr/local/www/interfaces_ppps_edit.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_ppps.php b/usr/local/www/interfaces_ppps.php index 63287b6..9c76179 100644 --- a/usr/local/www/interfaces_ppps.php +++ b/usr/local/www/interfaces_ppps.php @@ -62,6 +62,8 @@ if ($_GET['act'] == "del") { if (ppp_inuse($_GET['id'])) { $input_errors[] = "This point-to-point link cannot be deleted because it is still being used as an interface."; } else { + unset($a_ppps[$_GET['id']]['pppoe-reset-type']); + handle_pppoe_reset($a_ppps[$_GET['id']]); unset($a_ppps[$_GET['id']]); write_config(); header("Location: interfaces_ppps.php"); diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php index 402868e..78ae49c 100644 --- a/usr/local/www/interfaces_ppps_edit.php +++ b/usr/local/www/interfaces_ppps_edit.php @@ -44,7 +44,6 @@ require("guiconfig.inc"); require("functions.inc"); -define("CRON_PPPOE_CMD_FILE", "{$g['varetc_path']}/pppoe_restart_"); define("CRON_MONTHLY_PATTERN", "0 0 1 * *"); define("CRON_WEEKLY_PATTERN", "0 0 * * 0"); define("CRON_DAILY_PATTERN", "0 0 * * *"); |