summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-06-07 19:40:54 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-06-07 19:40:54 +0000
commitf9b96756eba3e97f4eacbafec33904df50f61349 (patch)
tree1c9e2ab8d9539a9ddd1bead1e92b5b6342f445e2 /etc
parent05674b755fd86a7af61c6358200e4635ef8f6d89 (diff)
downloadsrc-test2-f9b96756eba3e97f4eacbafec33904df50f61349.tar.gz
src-test2-f9b96756eba3e97f4eacbafec33904df50f61349.zip
Notes
Diffstat (limited to 'etc')
-rwxr-xr-xetc/pccard_ether12
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
index 88da80120cc0..69ea3d988eab 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
}