recipes: networking/rsync: reconfigured to support old-style compression with include...
[dragora.git] / archive / dhcpcd / rc.main
blobece7907db601991d2b19826c11284420d17a7f34
1 #! /bin/sh -
3 # dhcpcd/rc.main
5 # A DHCP client.
8 # Redirects the standard error to the standard output
9 exec 2>&1
11 TARGET="$1"
12 SVNAME="${2:-dhcpcd}"
14 start()
16 echo "*** ${SVNAME}: Starting dhcpcd ..."
17 exec /usr/sbin/dhcpcd -B
20 reset()
22 case $3 in
23 exit)
24 echo "*** ${SVNAME}: Exited status $4"
26 signal)
27 echo "*** ${SVNAME}: Killed on signal $5"
30 echo "*** ${SVNAME}: Stopped (${3})"
32 esac
35 # Branch to target
36 eval ${TARGET} "$@"