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