aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-01-25 00:45:17 +0000
committerScott Ullrich <sullrich@pfsense.org>2009-01-25 00:45:17 +0000
commit6b4a26a1c0037a621a2c8dd3b391fce6ba89deae (patch)
treee95463bda3d355adf31829d64dba5cccf249924d
parent1fd97e848926eec45aad512ad0159ccc7702cd75 (diff)
downloadpfsense-packages-6b4a26a1c0037a621a2c8dd3b391fce6ba89deae.tar.gz
pfsense-packages-6b4a26a1c0037a621a2c8dd3b391fce6ba89deae.tar.bz2
pfsense-packages-6b4a26a1c0037a621a2c8dd3b391fce6ba89deae.zip
Check for /proc/0
-rw-r--r--packages/avahi/avahi.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/avahi/avahi.inc b/packages/avahi/avahi.inc
index 9d61bd0a..564b129a 100644
--- a/packages/avahi/avahi.inc
+++ b/packages/avahi/avahi.inc
@@ -143,7 +143,10 @@ EOF;
fwrite($fd, $avahiconfig);
fclose($fd);
/* Write out rc.d startup file */
- $start = "if [ ! -d /proc ]; then\n mount -t procfs procfs /proc\nfi\n/usr/local/sbin/avahi-daemon -D";
+ $start = "if [ ! -d /proc/0 ]; then\n";
+ $start .= " mount -t procfs procfs /proc\n";
+ $start .= "fi\n";
+ $start .= "/usr/local/sbin/avahi-daemon -D\n";
$stop = "/usr/bin/killall avahi-daemon";
write_rcfile(array(
"file" => "avahi-daemon.sh",