From bfdb2ee4db22e938b67ef0c379a4f4d94ee9960e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 25 Jan 2009 02:54:04 +0000 Subject: Make avahi embedded friendly. --- packages/avahi/avahi.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/avahi') diff --git a/packages/avahi/avahi.inc b/packages/avahi/avahi.inc index 643fd660..0c18a075 100644 --- a/packages/avahi/avahi.inc +++ b/packages/avahi/avahi.inc @@ -143,11 +143,13 @@ EOF; fwrite($fd, $avahiconfig); fclose($fd); /* Write out rc.d startup file */ - $start = "if [ ! -d /proc/0 ]; then\n"; + $start = "/etc/rc.conf_mount_rw\n"; + $start .= "if [ ! -d /proc/0 ]; then\n"; $start .= " mkdir -p /proc\n"; $start .= " mount -t procfs procfs /proc\n"; $start .= "fi\n"; $start .= "/usr/local/sbin/avahi-daemon -D\n"; + $start .= "/etc/rc.conf_mount_ro\n"; $stop = "/usr/bin/killall avahi-daemon"; write_rcfile(array( "file" => "avahi-daemon.sh", -- cgit v1.2.3