contrib/dhcp/dhclient
2011-08-14 00:25:15 +02:00

24 lines
298 B
Bash

#!/bin/sh
#
# /etc/rc.d/dhcpcd: start/stop dhcp client
#
case $1 in
start)
/usr/sbin/dhclient -q
;;
stop)
test -f /var/run/dhclient.pid && kill $(cat /var/run/dhclient.pid)
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file