# dhcpcd below to dhclient if you are running RedHat
#
-if ifconfig eth0 >/dev/null 2>&1 ; then
+DHCPCD=/bin/dhcpcd
+if [ ! -x $DHCPCD ] ; then
+ DHCPCD=/bin/dhclient
+fi
+if ifconfig eth0 >/dev/null 2>&1 ; then
echo "Setting up network..."
- /bin/dhcpcd $eth0
-
+ $DHCPCD eth0
echo "done"
ifconfig
exit
-
fi
echo "No network card present, cannot configure network"