#!/bin/sh # # /etc/rc.d/rc.dhcpcd # # Start/stop the DHCP daemon. # # This script doesn't do anything other than starting dhcpcd for the specified interfaces (or all of them). For more functionality see rc.inet1. IFACES="" if [ -f /etc/default/dhcpcd ]; then . /etc/default/dhcpcd fi case "$1" in 'start') shift dhcpcd -b ${@:-$IFACES} ;; 'stop') shift dhcpcd -k ${@:-$IFACES} ;; *) echo "Usage: $0 start|stop [interfaces]" esac