From e9db84519cd856e5e747d37fcffca76e105de0f1 Mon Sep 17 00:00:00 2001 From: ume Date: Sat, 7 Jun 2003 19:40:54 +0000 Subject: follow dhcp_* changes. --- etc/pccard_ether | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'etc/pccard_ether') diff --git a/etc/pccard_ether b/etc/pccard_ether index 88da801..69ea3d9 100755 --- a/etc/pccard_ether +++ b/etc/pccard_ether @@ -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 } -- cgit v1.1