libm: Remove sincos() and friends from lib/libm.
[dragonfly.git] / etc / rc.d / dhcp_client
blob10fcade3c3052ef773d02a9ab52acf91cc8b2a08
1 #!/bin/sh
3 # PROVIDE: dhcp_client
4 # REQUIRE: mountcritlocal
5 # KEYWORD: nojail nostart
7 . /etc/rc.subr
9 name="dhcp_client"
11 load_rc_config ${name}
12 dummy_rc_command "$1"
14 find_client()
16 [ -x "${dhcp_client}" ] && {
17 echo -n "${dhcp_client}"
18 return
21 for dir in /etc/rc.d ${local_startup}; do
22 [ -x "${dir}/${dhcp_client}" ] && {
23 echo -n "${dir}/${dhcp_client}"
24 return
26 done
29 command=$(find_client)
30 debug "found client program: ${command}"
31 if [ -n "${command}" ]; then
32 ${command} "$@"
33 else
34 echo "ERROR: cannot find the command to start DHCP client."
35 exit 1