diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index de1c09e777..5518dee632 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -226,7 +226,7 @@ function captiveportal_configure() {
touch("{$g['vardb_path']}/captiveportal.db");
/* kill any running minicron */
- killbypid("{$g['varrun_path']}/minicron.pid");
+ killbypid("{$g['varrun_path']}/cp_prunedb.pid");
/* init ipfw rules */
captiveportal_init_rules(true);
@@ -417,8 +417,12 @@ EOD;
/* start up the webserving daemon */
captiveportal_init_webgui();
+ /* Kill any existing prunecaptiveportal processes */
+ if(file_exists("{$g['varrun_path']}/cp_prunedb.pid"))
+ killbypid("{$g['varrun_path']}/cp_prunedb.pid");
+
/* start pruning process (interval defaults to 60 seconds) */
- mwexec("/usr/local/bin/minicron $croninterval {$g['varrun_path']}/minicron.pid " .
+ mwexec("/usr/local/bin/minicron $croninterval {$g['varrun_path']}/cp_prunedb.pid " .
"/etc/rc.prunecaptiveportal");
/* generate radius server database */
@@ -429,7 +433,7 @@ EOD;
} else {
killbypid("{$g['varrun_path']}/lighty-CaptivePortal.pid");
- killbypid("{$g['varrun_path']}/minicron.pid");
+ killbypid("{$g['varrun_path']}/cp_prunedb.pid");
captiveportal_radius_stop_all();
diff --git a/etc/inc/config.console.inc b/etc/inc/config.console.inc
index 9005b79bd6..d1eb18aa42 100644
--- a/etc/inc/config.console.inc
+++ b/etc/inc/config.console.inc
@@ -303,9 +303,9 @@ EOD;
echo "\nThe interfaces will be assigned as follows: \n\n";
+ echo "WAN -> " . $wanif . "\n";
if ($lanif != "")
echo "LAN -> " . $lanif . "\n";
- echo "WAN -> " . $wanif . "\n";
for ($i = 0; $i < count($optif); $i++) {
echo "OPT" . ($i+1) . " -> " . $optif[$i] . "\n";
}
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index b20700420e..937d193753 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -88,6 +88,8 @@ $g = array(
"disablethemeselection" => false,
"disablehelpmenu" => false,
"disablehelpicon" => false,
+ "disablecrashreporter" => false,
+ "crashreporterurl" => "http://crashreporter.pfsense.org/crash_reporter.php",
"debug" => false,
"latest_config" => "7.7",
"nopkg_platforms" => array("cdrom"),
diff --git a/sbin/dhclient-script b/sbin/dhclient-script
index ee98fa0b18..aaa8144192 100755
--- a/sbin/dhclient-script
+++ b/sbin/dhclient-script
@@ -184,8 +184,9 @@ add_new_routes() {
fi
ADDED_ROUTE=no
+ EXISTSGW=`/bin/ls -l /tmp/*_defaultgw | /usr/bin/wc -l`
# Only allow the default route to be overridden if it's on our own interface
- if [ -f "/tmp/${interface}_defaultgw" ]; then
+ if [ -f "/tmp/${interface}_defaultgw" -o $EXISTSGW -eq 0 ]; then
$ROUTE delete default
for router in $new_routers; do
if [ "$new_ip_address" = "$router" ]; then
diff --git a/usr/local/sbin/ovpn-linkup b/usr/local/sbin/ovpn-linkup
index f962ac2d56..60489c2e6f 100755
--- a/usr/local/sbin/ovpn-linkup
+++ b/usr/local/sbin/ovpn-linkup
@@ -1,7 +1,5 @@
#!/bin/sh
-# write nameservers to file needs dns fidnings?!
-
# let the configuration system know that the ip has changed.
#/usr/local/sbin/pfSctl -c "interface newip $interface"
/bin/echo $4 > /tmp/$1_router
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
index c75fe72215..8b03936d1a 100755
--- a/usr/local/www/crash_reporter.php
+++ b/usr/local/www/crash_reporter.php
@@ -42,19 +42,24 @@ require("guiconfig.inc");
require("functions.inc");
require("captiveportal.inc");
+define("FILE_SIZE", 450000);
+
function upload_crash_report($files) {
+ global $g;
$post = array();
$counter = 0;
foreach($files as $file) {
- $post["file{$counter}"] = "@{$file}";
- $counter++;
+ if(filesize($cf) < FILE_SIZE) {
+ $post["file{$counter}"] = "@{$file}";
+ $counter++;
+ }
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible;)");
- curl_setopt($ch, CURLOPT_URL, "http://crashreporter.pfsense.org/crash_reporter.php");
+ curl_setopt($ch, CURLOPT_URL, $g['crashreporterurl']);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$response = curl_exec($ch);
@@ -71,8 +76,8 @@ function output_crash_reporter_html($crash_reports) {
echo gettext("Contents of crash reports") . ":
";
echo "";
echo "