I think the following modification should be added to one of puppy's startup scripts.
if [ -f /etc/dhcpc/dhcpcd-ethX.pid ]
then
rm /etc/dhcpc/dhcpcd-ethX.pid
dhcpcd ethX
fi
where X is the interface number 0,1,2....
I think it is safe to assume that if the file exists that dhcp is being used.
dhcpcd on startup
/etc/rc.d/rc.network:
Code: Select all
echo "Trying to get IP address from DHCP server (60sec timeout)..."
rm /etc/dhcpc/dhcpcd-eth0.pid 2>/dev/null #if left over from last session, causes trouble.
rm /etc/dhcpc/dhcpcd-eth0.cache 2>/dev/null #ditto
rm /etc/dhcpc/dhcpcd-eth0.info 2>/dev/null #ditto
Code: Select all
cho "Trying to get IP address from DHCP server (60sec timeout)..."
rm /etc/dhcpc/dhcpcd-eth1.pid 2>/dev/null #if left over from last session, causes trouble.
rm /etc/dhcpc/dhcpcd-eth1.cache 2>/dev/null #ditto
rm /etc/dhcpc/dhcpcd-eth1.info 2>/dev/null #ditto