summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-11-21 19:03:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-11-21 19:03:40 +0000
commit2243ff08a6fc7e1bf00ad8dc9af4d93f91a65465 (patch)
treef8027719e6bc65a14ed3031cbfddc122d754c76e /usr/local/www/interfaces.php
parentac10a85eb41bf5e5e31d991363b015b94a9855f2 (diff)
downloadpfsense-2243ff08a6fc7e1bf00ad8dc9af4d93f91a65465.zip
pfsense-2243ff08a6fc7e1bf00ad8dc9af4d93f91a65465.tar.gz
Add missing "'s for parameters
Diffstat (limited to 'usr/local/www/interfaces.php')
-rwxr-xr-xusr/local/www/interfaces.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index d0542a4..0fd1e89 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -51,7 +51,7 @@ define("CRON_WEEKLY_PATTERN", "0 0 * * 0");
define("CRON_DAILY_PATTERN", "0 0 * * *");
define("CRON_HOURLY_PATTERN", "0 * * * *");
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");
+define("CRON_PPPOE_CMD", "#!/bin/sh\necho '<?php require(\"interfaces.inc\"); interface_reconfigure(\"$if\"); services_dyndns_reset(\"$if\"); filter_configure_sync(); ?>' | /usr/local/bin/php -q");
function getMPDCRONSettings() {
global $config;
@@ -536,6 +536,9 @@ if ($_POST) {
conf_mount_ro();
+ /* regenerate cron settings/crontab file */
+ configure_cron();
+
header("Location: interfaces.php?if={$if}");
exit;
}
@@ -626,8 +629,6 @@ function handle_pppoe_reset() {
file_put_contents(CRON_PPPOE_CMD_FILE, CRON_PPPOE_CMD);
chmod(CRON_PPPOE_CMD_FILE, 0700);
}
- /* regenerate cron settings/crontab file */
- configure_cron();
sigkillbypid("{$g['varrun_path']}/cron.pid", "HUP");
}
}
OpenPOWER on IntegriCloud