summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-21 17:44:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-21 17:44:09 +0000
commitac10a85eb41bf5e5e31d991363b015b94a9855f2 (patch)
tree9f910ca9785f742b45c8e30c84cd4bb6f62d0cfd /usr
parent8a8f493f6536bdaa09221bb3d339a483152641b9 (diff)
downloadpfsense-ac10a85eb41bf5e5e31d991363b015b94a9855f2.zip
pfsense-ac10a85eb41bf5e5e31d991363b015b94a9855f2.tar.gz
Do not store the pppoe reset file on /var/. A reboot will whipe it out.
Instead, store the file in /conf/
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 8e29ef7..d0542a4 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -50,7 +50,7 @@ define("CRON_MONTHLY_PATTERN", "0 0 1 * *");
define("CRON_WEEKLY_PATTERN", "0 0 * * 0");
define("CRON_DAILY_PATTERN", "0 0 * * *");
define("CRON_HOURLY_PATTERN", "0 * * * *");
-define("CRON_PPPOE_CMD_FILE", "{$g['varetc_path']}/pppoe{$if}restart");
+define("CRON_PPPOE_CMD_FILE", "/conf/pppoe{$if}restart");
define("CRON_PPPOE_CMD", "#!/bin/sh\necho '<?php require(\"interfaces.inc\"); interface_reconfigure($if); services_dyndns_reset($if); filter_configure(); ?>' | /usr/local/bin/php -q");
function getMPDCRONSettings() {
@@ -288,7 +288,9 @@ if ($_POST) {
unset($input_errors);
$pconfig = $_POST;
-
+
+ conf_mount_rw();
+
/* filter out spaces from descriptions */
$_POST['descr'] = remove_bad_chars($_POST['descr']);
OpenPOWER on IntegriCloud