summaryrefslogtreecommitdiffstats
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-08-12 22:27:08 +0000
committermbr <mbr@FreeBSD.org>2003-08-12 22:27:08 +0000
commitad65249832343bf303bde4c5da081bf287f3a3f9 (patch)
tree94f28cec00cf9ca782cc705c6db320d5bca1aa75 /etc/pccard_ether
parent2bb2e522ee1a9784496403a0a39c0a5d84fe524e (diff)
downloadFreeBSD-src-ad65249832343bf303bde4c5da081bf287f3a3f9.zip
FreeBSD-src-ad65249832343bf303bde4c5da081bf287f3a3f9.tar.gz
Remove the dhclient.${interface}.pid defines. They are now
obsolete. A working dhclient with OMAPI will also not need this.
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-xetc/pccard_ether10
1 files changed, 1 insertions, 9 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
index c431cfd..096b28a 100755
--- a/etc/pccard_ether
+++ b/etc/pccard_ether
@@ -60,11 +60,7 @@ stop_dhcp() {
esac
done
- if [ -s /var/run/dhclient.${interface}.pid ]; then
- pidfile="/var/run/dhclient.${interface}.pid"
- elif [ -s /var/run/dhcpc.${interface}.pid ]; then
- pidfile="/var/run/dhcpc.${interface}.pid"
- elif [ -s /var/run/dhclient.pid ]; then
+ if [ -s /var/run/dhclient.pid ]; then
pidfile="/var/run/dhclient.pid"
else
return
@@ -96,10 +92,6 @@ start_dhcp() {
[ -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"
- dhclient_flags="${dhclient_flags} -pf ${pidfile}"
- fi
${dhclient_program} ${dhclient_flags} $_dhcplist ${interface}
else
echo "${dhclient_program}: DHCP client software not available"
OpenPOWER on IntegriCloud