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