aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/miniupnpd/miniupnpd.inc6
-rw-r--r--packages/miniupnpd/miniupnpd.xml2
-rwxr-xr-xpackages/miniupnpd/sbin/miniupnpdbin47012 -> 47974 bytes
-rw-r--r--pkg_config.xml2
4 files changed, 5 insertions, 5 deletions
diff --git a/packages/miniupnpd/miniupnpd.inc b/packages/miniupnpd/miniupnpd.inc
index a74a0377..d4f746e5 100644
--- a/packages/miniupnpd/miniupnpd.inc
+++ b/packages/miniupnpd/miniupnpd.inc
@@ -45,12 +45,12 @@
if($ifaces_final) {
/* valid paramters lets create rc file and start miniupnpd */
- $start = "if [ -e /var/run/miniupnpd.pid ]; then\n";
+ $start = "if [ `pgrep miniupnpd | wc -l` != 0 ]; then\n";
$start .= "/usr/bin/killall miniupnpd\n";
$start .= "# Clear existing rules and rdr entries \n";
$start .= "/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null\n";
$start .= "/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n";
- $start .= "while [ -e /var/run/miniupnpd.pid ]; do sleep 1; done\n";
+ $start .= "while [ `pgrep miniupnpd | wc -l` != 0 ]; do sleep 1; done\n";
$start .= "fi\n";
$start .= "/usr/local/sbin/miniupnpd -p 2869{$ifaces_final}";
@@ -62,7 +62,7 @@
$stop .= "# Clear existing rules and rdr entries \n";
$stop .= "/sbin/pfctl -aminiupnpd -Fr 2>&1 >/dev/null\n";
$stop .= "/sbin/pfctl -aminiupnpd -Fn 2>&1 >/dev/null\n";
- $stop .= "while [ -e /var/run/miniupnpd.pid ]; do sleep 1; done";
+ $stop .= "while [ `pgrep miniupnpd | wc -l` != 0 ]; do sleep 1; done";
write_rcfile(array(
"file" => "miniupnpd.sh",
"start" => $start,
diff --git a/packages/miniupnpd/miniupnpd.xml b/packages/miniupnpd/miniupnpd.xml
index 36e3bb1e..000317cf 100644
--- a/packages/miniupnpd/miniupnpd.xml
+++ b/packages/miniupnpd/miniupnpd.xml
@@ -2,7 +2,7 @@
<packagegui>
<title>Services: Miniupnpd</title>
<name>miniupnpd</name>
- <version>20061027</version>
+ <version>20061028</version>
<savetext>Change</savetext>
<include_file>/usr/local/pkg/miniupnpd.inc</include_file>
<aftersaveredirect>status_upnp.php</aftersaveredirect>
diff --git a/packages/miniupnpd/sbin/miniupnpd b/packages/miniupnpd/sbin/miniupnpd
index 54c66dcc..5db7d397 100755
--- a/packages/miniupnpd/sbin/miniupnpd
+++ b/packages/miniupnpd/sbin/miniupnpd
Binary files differ
diff --git a/pkg_config.xml b/pkg_config.xml
index 9551ad5a..cef95dbc 100644
--- a/pkg_config.xml
+++ b/pkg_config.xml
@@ -122,7 +122,7 @@
<website>http://miniupnp.free.fr/</website>
<category>Network Management</category>
<maintainer>seth.mos@xs4all.nl ryan@wgnrs.dynu.com</maintainer>
- <version>20061027</version>
+ <version>20061028</version>
<required_version>1.0</required_version>
<status>BETA</status>
<config_file>http://www.pfsense.com/packages/config/miniupnpd/miniupnpd.xml</config_file>