<rancor@dathomir.se>
2007-Sep-17 08:10 UTC
Re: dhclient would not work if cable is disconnected
Klockrent! This did the trick and it works perfect, thanks. I start the script from rc.more instead of rc.local. I think this rc.more is something unique for Flashboot? Best Regards rancor On Sat Sep 15 9:10 , Rickard Dahlstrand sent: 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@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@mindrot.org https://lists.mindrot.org/mailman/listinfo/flashboot _______________________________________________ flashboot mailing list flashboot@mindrot.org https://lists.mindrot.org/mailman/listinfo/flashboot