summaryrefslogtreecommitdiffstats
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-06-07 19:40:54 +0000
committerume <ume@FreeBSD.org>2003-06-07 19:40:54 +0000
commite9db84519cd856e5e747d37fcffca76e105de0f1 (patch)
tree1c9e2ab8d9539a9ddd1bead1e92b5b6342f445e2 /etc/pccard_ether
parentb8cbfc8a9bf0bdbef567d688d7199fee7fe3fe3f (diff)
downloadFreeBSD-src-e9db84519cd856e5e747d37fcffca76e105de0f1.zip
FreeBSD-src-e9db84519cd856e5e747d37fcffca76e105de0f1.tar.gz
follow dhcp_* changes.
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-xetc/pccard_ether12
1 files changed, 7 insertions, 5 deletions
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
}
OpenPOWER on IntegriCloud