Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/dhclient
| Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | dhclient_prestart() | ||||
| install -d -o root -g wheel -m 755 ${pidfile%/*} | install -d -o root -g wheel -m 755 ${pidfile%/*} | ||||
| rc_flags="${rc_flags} ${ifn}" | rc_flags="${rc_flags} ${ifn}" | ||||
| } | } | ||||
| load_rc_config $name | load_rc_config $name | ||||
| load_rc_config network | load_rc_config network | ||||
| # dhclient_prestart is not compatible with svcj | |||||
| dhclient_svcj="NO" | |||||
| if [ -z $ifn ] ; then | if [ -z $ifn ] ; then | ||||
| # only complain if a command was specified but no interface | # only complain if a command was specified but no interface | ||||
| if [ -n "$1" ] ; then | if [ -n "$1" ] ; then | ||||
| err 1 "$0: no interface specified" | err 1 "$0: no interface specified" | ||||
| fi | fi | ||||
| fi | fi | ||||
| run_rc_command "$1" | run_rc_command "$1" | ||||