You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
503 B
27 lines
503 B
#!/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
|
|
|