follow dhcp_* changes.

This commit is contained in:
Hajimu UMEMOTO 2003-06-07 19:40:54 +00:00
parent 05674b755f
commit f9b96756eb

View file

@ -28,14 +28,16 @@ start_dhcp() {
sleep ${pccard_ether_delay}
;;
esac
if [ -x "${dhcp_program}" ]; then
if [ `basename ${dhcp_program}` = "dhclient" ]; then
[ -n "$dhcp_program" ] && dhclient_program="$dhcp_program"
[ -n "$dhcp_flags" ] && dhclient_flags="$dhcp_flags"
if [ -x "${dhclient_program}" ]; then
if [ `basename ${dhclient_program}` = "dhclient" ]; then
pidfile="/var/run/dhclient.${interface}.pid"
dhcp_flags="${dhcp_flags} -pf ${pidfile}"
dhclient_flags="${dhclient_flags} -pf ${pidfile}"
fi
${dhcp_program} ${dhcp_flags} ${interface}
${dhclient_program} ${dhclient_flags} ${interface}
else
echo "${dhcp_program}: DHCP client software not available"
echo "${dhclient_program}: DHCP client software not available"
fi
}