2005-07-26 02:34:10 +02:00
|
|
|
#compdef dhclient dhclient3
|
2005-07-26 01:59:02 +02:00
|
|
|
|
2005-08-01 18:26:28 +02:00
|
|
|
local args
|
2005-07-26 02:34:10 +02:00
|
|
|
|
|
|
|
if _pick_variant three=V3 two --help; then
|
2005-08-01 18:26:28 +02:00
|
|
|
args=(
|
|
|
|
'-q[quiet]'
|
|
|
|
'-1[only try once to get a lease]'
|
|
|
|
'-r[release the current lease]'
|
|
|
|
'-lf[lease file]:lease file:_files'
|
|
|
|
'-pf[pid file]:pid file:_files'
|
|
|
|
'-cf[config file]:config file:_files'
|
|
|
|
'-sf[script file]:script file:_files'
|
|
|
|
'-e[env vars to pass to child processes]:env var key value pairs:'
|
|
|
|
'-s[transmit to specific target instead of broadcast]:server:_hosts'
|
|
|
|
'-g[force giaddr field]:relay:_hosts'
|
|
|
|
'-n[do not configure any interfaces]'
|
|
|
|
'-nw[daemonize immediately rather than wait for IP acquisition]'
|
|
|
|
'-w[do not exit if there are no interfaces found to configure]'
|
|
|
|
)
|
2005-07-26 02:34:10 +02:00
|
|
|
else
|
2005-08-01 18:26:28 +02:00
|
|
|
args=( '-e[exit if configuration failed after a certain time]' )
|
2005-07-26 02:34:10 +02:00
|
|
|
fi
|
2005-08-01 18:26:28 +02:00
|
|
|
|
|
|
|
_arguments $args \
|
|
|
|
'-p[port to transmit to / listen on]:_ports' \
|
|
|
|
'-d[force to run in foreground]' \
|
|
|
|
':interface:_net_interfaces'
|