#!/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 echo "Starting dhcpcd..." dhcpcd -b ${@:-$IFACES} ;; 'stop') shift echo "Stopping dhcpcd..." dhcpcd -k ${@:-$IFACES} ;; *) echo "Usage: $0 start|stop [interfaces]" esac