<rancor@dathomir.se>
2007-Sep-14 12:57 UTC
dhclient would not work if cable is disconnected or dhcp server is unavailable during boot
Hi. I''m running flashboot 4.1 on a Soekris 4801-50. 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. I tried to configure dhclient to retry in dhclient.conf but without positive result. I have also tried to manually start dhclient in rc.more but dhclient terminates without retrying any further. Is there any way to get dhclient keep running so I can connect the wire after boot and make dhcp work without reboot? Best Regards rancor _______________________________________________ flashboot mailing list flashboot@mindrot.org https://lists.mindrot.org/mailman/listinfo/flashboot
Rickard Dahlstrand
2007-Sep-15 07:10 UTC
[flashboot] dhclient would not work if cable is disconnected or dhcp server is unavailable during boot
Hi,
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 > /dev/null 2> /dev/null &
#!/bin/sh
if (grep dhcp /etc/hostname.sis0) then
while true; do
if (ps -aux | grep dhclient | grep -v grep) then
echo "ok.."
else
echo "down, launching dhclient.."
dhclient sis0
fi
sleep 10
done
fi
rancor at dathomir.se wrote:> Hi.
>
> I''m running flashboot 4.1 on a Soekris 4801-50.
>
> 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.
>
> I tried to configure dhclient to retry in dhclient.conf but without
> positive result.
>
> I have also tried to manually start dhclient in rc.more but dhclient
> terminates without retrying any further.
>
> Is there any way to get dhclient keep running so I can connect the
> wire after boot and make dhcp work without reboot?
>
> Best Regards rancor
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> flashboot mailing list
> flashboot at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/flashboot
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.mindrot.org/pipermail/flashboot/attachments/20070915/063575a8/attachment.html