#!/bin/sh
# Loader for dhclient-uw
#  Works around the fact that dhclient-uw isn't going to know its own
#  pid, unfortunately, vmkctl needs this to be able to kill it properly

/usr/lib/vmware/bin/vmkload_app -ivmktcp /usr/lib/vmware/bin/dhclient-uw -d -q -lf /var/lib/dhcp/dhclient-$1.leases -cf /etc/dhclient-$1.conf $1 &
echo $! > /var/run/dhcp-$1.pid
