<HTML>
Klockrent!<BR>
<BR>
This did the trick and it works perfect, thanks.<BR>
<BR>
I start the script from rc.more instead of rc.local. I think this rc.more is something unique for Flashboot?<BR>
<BR>
Best Regards rancor<BR>
<BR>
 <BR>
<BR>
<span style="font-weight: bold;">On Sat Sep 15  9:10 , Rickard Dahlstrand <rd@tilde.se> sent:<BR>
<BR>
</rd@tilde.se></span><blockquote style="border-left: 2px solid rgb(245, 245, 245); margin-left: 5px; margin-right: 0px; padding-left: 5px; padding-right: 0px;">


  <defanged_meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  
<defanged_body bgcolor="#ffffff" text="#000000">
Hi,<BR>

<BR>

I use a small watchdog-script for this. It checks for a running
dhclient and starts it if it for some reason failed. Just start it in
rc.local with /etc/scripts/dhc-watchdog.sh &gt; /dev/null 2&gt;
/dev/null &amp;<BR>

<BR>

<BR>

#!/bin/sh<BR>

if (grep dhcp /etc/hostname.sis0) then<BR>

&nbsp; while true; do<BR>

&nbsp;&nbsp;&nbsp; if (ps -aux | grep dhclient | grep -v grep) then<BR>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "ok.."<BR>

&nbsp;&nbsp;&nbsp; else<BR>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "down, launching dhclient.."<BR>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dhclient sis0<BR>

&nbsp;&nbsp;&nbsp; fi<BR>

&nbsp;&nbsp;&nbsp; sleep 10<BR>

&nbsp; done<BR>

fi<BR>

<BR>

<BR>

<a class="moz-txt-link-abbreviated" href="javascript:top.opencompose('rancor@dathomir.se','','','')">rancor@dathomir.se</a> wrote:
</defanged_body></defanged_meta><blockquote cite="mid:55953.1189774631@dathomir.se" type="cite">Hi.<BR>

  <BR>

I'm running flashboot 4.1 on a Soekris 4801-50.<BR>

  <BR>

sis0 is configured with dhcp and it work if the interface is connected
during boot. If the interface is disconnected during boot the interface
will never recover after I connect it.<BR>

  <BR>

I tried to configure dhclient to retry in dhclient.conf but without
positive result.<BR>

  <BR>

I have also tried to manually start dhclient in rc.more but dhclient
terminates without retrying any further.<BR>

  <BR>

Is there any way to get dhclient keep running so I can connect the wire
after boot and make dhcp work without reboot?<BR>

  <BR>

Best Regards rancor<BR>

  <BR>

  <pre wrap=""><hr size="4" width="90%">
_______________________________________________
flashboot mailing list
<a class="moz-txt-link-abbreviated" href="javascript:top.opencompose('flashboot@mindrot.org','','','')">flashboot@mindrot.org</a>
<a class="moz-txt-link-freetext" target="_blank" href="https://lists.mindrot.org/mailman/listinfo/flashboot">https://lists.mindrot.org/mailman/listinfo/flashboot</a>
  </pre>
</blockquote>
</blockquote></HTML>
<BR>