dhcp: include dhclient script

This commit is contained in:
Thomas Penteker 2011-08-14 00:14:47 +02:00
parent ecaa318258
commit 73330de890

23
dhcp/dhclient Normal file
View File

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