Excellent ideas here.<br><br><div class="gmail_quote">On Wed, Oct 13, 2010 at 9:45 PM, Christian Brędstrup <span dir="ltr">&lt;<a href="mailto:linuxchristian@gmail.com">linuxchristian@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hey Guys,<br><br>I have been hacking on the Debian live system the last couple of days and have something working I wanted to share. I have written a couple of Perl script to help computers on the LAN find the FB box. One is a primitive broadcast server running on the box and the other is a client you start on your local machine that grabs the packages from the server and opens Firefox to point at the box.</blockquote>
<div><br>Have you looked at the zeroconf stuff? Both Apple and MS have done work in this space - I think the Apple stuff is open source and not too horrible, based on open protocols:<br><br>   <a href="http://en.wikipedia.org/wiki/Zero_configuration_networking">http://en.wikipedia.org/wiki/Zero_configuration_networking</a><br>
</div><div><br>For maximum success, we&#39;d probably like to be able to speak both protocols, embrace, extend, etc. ;-)<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
 <br>It still isn&#39;t perfect ex. the script runs for 120 sec on boot and shutdown (Haven&#39;t found a way only to run it on boot and only when it is needed) but it works. Also it can only handle eth0 but I should be able to fix that with time.<br>
</blockquote><div><br>Take a look at the structure of some of the other scripts in /etc/init.d/ - you will see that generally they have a switch statement checking what the first argument is. On boot the argument &quot;start&quot; is present, on shutdown &quot;stop&quot;. You should be able to fix this with a little bit of copy-paste.<br>
</div></div><br>-- <br>Bjarni R. Einarsson<br>Founder, CEO and janitor of the Beanstalks Project.<br><br><a href="http://beanstalks-project.net/" target="_blank">http://beanstalks-project.net/</a>  ~  <a href="http://bre.klaki.net/" target="_blank">http://bre.klaki.net/</a><br>