From 1f676b67451375df5e9e22ea5939b73d7d59b6fe Mon Sep 17 00:00:00 2001
From: Ermal
Date: Thu, 3 Feb 2011 19:12:43 +0000
Subject: Ticket #259. Actually kill dhlient when the interface type changes
before going through apply changes otherwise the information would be lost
and dhclient will remain running.
---
usr/local/www/interfaces.php | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'usr')
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 98d449b..d1fa6f7 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -517,7 +517,12 @@ if ($_POST['apply']) {
if (in_array($wancfg['ipaddr'], array("ppp", "pppoe", "pptp", "l2tp"))) {
$wancfg['if'] = $a_ppps[$pppid]['ports'];
unset($a_ppps[$pppid]);
+ } else if ($wancfg['type'] == "dhcp") {
+ $pid = find_dhclient_process($realif);
+ if($pid)
+ posix_kill($pid, SIGTERM);
}
+
}
$ppp = array();
if ($wancfg['ipaddr'] != "ppp")
--
cgit v1.1
From 45d72d8215ecf3dc2ba7eff8a8f146a233216d94 Mon Sep 17 00:00:00 2001
From: Scott Ullrich
Date: Thu, 3 Feb 2011 17:39:07 -0500
Subject: Adding a page that will allow uploading of crash (panic) data. Once
the server piece is in place we will detect crash data in php and redirect to
this page to prompt if the operator would like to upload the data. Remove
the crash data after upload or if the operator does not want to upload the
crash data.
---
usr/local/www/crash_reporter.php | 126 +++++++++++++++++++++++++++++++++++++++
1 file changed, 126 insertions(+)
create mode 100755 usr/local/www/crash_reporter.php
(limited to 'usr')
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
new file mode 100755
index 0000000..84f2ef7
--- /dev/null
+++ b/usr/local/www/crash_reporter.php
@@ -0,0 +1,126 @@
+
+ $post = array();
+ $counter = 0;
+ foreach($files as $file) {
+ $tmp = array();
+ $tmp["file{$counter}"] = "@{$file}";
+ $post[] = $tmp;
+ $counter++;
+ }
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
+ $response = curl_exec($ch);
+}
+
+function output_crash_reporter_html($crash_reports) {
+ echo "" . gettext("Unfortunately we have detected a kernel crash (panic).") . "
";
+ echo "" . gettext("Would you like to submit the crash debug logs to the pfSense developers for inspection?") . "";
+ echo "