diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-01-25 02:54:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-01-25 02:54:04 +0000 |
commit | bfdb2ee4db22e938b67ef0c379a4f4d94ee9960e (patch) | |
tree | 5ef0ea81be0be7176b3ff7dff9a3164eac934517 /packages/avahi | |
parent | 4852536e9679122c2aeab96d30a4d769505e6fa8 (diff) | |
download | pfsense-packages-bfdb2ee4db22e938b67ef0c379a4f4d94ee9960e.tar.gz pfsense-packages-bfdb2ee4db22e938b67ef0c379a4f4d94ee9960e.tar.bz2 pfsense-packages-bfdb2ee4db22e938b67ef0c379a4f4d94ee9960e.zip |
Make avahi embedded friendly.
Diffstat (limited to 'packages/avahi')
-rw-r--r-- | packages/avahi/avahi.inc | 4 |
1 files changed, 3 insertions, 1 deletions
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", |