Permalink
Browse files

add "avahi enable reflector" dep to enable bonjour across multiple su…

…bnets
  • Loading branch information...
1 parent e6bdd87 commit 6bda1cb366ea0e85d3ce58a3de416d68072562f7 @henningthies henningthies committed Jul 24, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 mdns.rb
View
10 mdns.rb
@@ -22,3 +22,13 @@
dep "mdns.complete" do
requires "mdns.managed", "mdns-scan.managed", "avahi-utils.managed", "libavahi-common-dev.managed", "libavahi-compat-libdnssd1.managed", "libavahi-compat-libdnssd-dev.managed"
end
+
+dep "avahi enable reflector" do
+ change_line "#enable-reflector=no", "enable-reflector=yes", "/etc/avahi/avahi-daemon.conf"
+ sudo "/etc/init.d/avahi-daemon restart"
+end
+
+dep "avahi disable reflector" do
+ change_line "enable-reflector=yes", "#enable-reflector=no", "/etc/avahi/avahi-daemon.conf"
+ sudo "/etc/init.d/avahi-daemon restart"
+end

0 comments on commit 6bda1cb

Please sign in to comment.