From 1fd97e848926eec45aad512ad0159ccc7702cd75 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 25 Jan 2009 00:20:40 +0000 Subject: Mount procfs when needed --- packages/avahi/avahi.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/avahi/avahi.inc b/packages/avahi/avahi.inc index ccbc2589..9d61bd0a 100644 --- a/packages/avahi/avahi.inc +++ b/packages/avahi/avahi.inc @@ -143,7 +143,7 @@ EOF; fwrite($fd, $avahiconfig); fclose($fd); /* Write out rc.d startup file */ - $start = "/usr/local/sbin/avahi-daemon -D"; + $start = "if [ ! -d /proc ]; then\n mount -t procfs procfs /proc\nfi\n/usr/local/sbin/avahi-daemon -D"; $stop = "/usr/bin/killall avahi-daemon"; write_rcfile(array( "file" => "avahi-daemon.sh", -- cgit v1.2.3