From fa0b8386b4227c560e7395557da075dcb042db57 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Fri, 25 Nov 2022 18:46:58 +0900 Subject: [PATCH] Update dhcpcd completion --- src/_dhcpcd | 66 +++++++++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/src/_dhcpcd b/src/_dhcpcd index 82b821f..0e6d263 100644 --- a/src/_dhcpcd +++ b/src/_dhcpcd @@ -3,7 +3,7 @@ # Description # ----------- # -# Completion script for dhcpcd 2.3.2. +# Completion script for dhcpcd 9.4.1 (http://roy.marples.name/projects/dhcpcd/) # # ------------------------------------------------------------------------------ # Authors @@ -13,36 +13,42 @@ # # ------------------------------------------------------------------------------ - _arguments \ - '1:network interface:_net_interfaces' \ - - release \ - '(-k --release)'{-k,--release}'[causes an existing dhcpcd process running on the interface to release it'\''s lease, deconfigure the interface and then exit]' \ - - exit \ - '(-x --exit)'{-x,--exit}'[causes an existing dhcpcd process running on the interface to exit]' \ - - main \ - '(-d --debug)'{-d,--debug}'[echo debug and informational messages to the console]' \ - '(-h --hostname)'{-h,--hostname}'[specify the hostname sent, or an empty string to stop any hostname from being sent]:hostname:_hosts' \ - '(-i --classid)'{-i,--classid}'[override the DHCP vendor classid field we send]:classid' \ - '(-l --leasetime)'{-l,--leasetime}'[request a specific lease time in seconds]:lease time \(seconds\)' \ - '(-m --metric)'{-m,--metric}'[added routes will use the metric on systems where this is supported]:metric' \ - '(-n --renew)'{-n,--renew}'[notifies an existing dhcpcd process running on the interface to renew it'\''s lease]' \ - '(-p --persistent)'{-p,--persistent}'[don'\''t deconfigure the interface and configuration at exit]' \ - '(-r --request)'{-r,--request}'[skip the broadcast request step and just request an address]:address' \ - '(-s --inform)'{-s,--inform}'[behaves exactly like -r, but sends a DHCP inform instead of a request]:address' \ - '(-t --timeout)'{-t,--timeout}'[timeout after seconds, instead of the default 20]:timeout \(seconds\)' \ - '(-u --userclass)'{-u,--userclass}'[tags the DHCP message with the userclass class]:class' \ - '*'{-H,--sethostname}'[forces dhcpcd to set the hostname as supplied by the DHCP server]' \ - '({-I --clientid)'{-I,--clientid}'[send clientid as a client identifier string]:clientid' \ - '*'{-S,--mscsr}'[request Microsoft specific Classless Static Routes (RFC 3442) code as well]' \ - '(-A --noarp)'{-A,--noarp}'[don'\''t request or claim the address by ARP]' \ - '(-G --nogateway)'{-G,--nogateway}'[don'\''t set any default routes]' \ - '(-L --noipv4ll)'{-L,--noipv4ll}'[don'\''t use IPv4LL at all]' \ - '(-M --nomtu)'{-M,--nomtu}'[don'\''t set the MTU of the interface]' \ - '(-N --nontp)'{-N,--nontp}'[don'\''t touch /etc/ntpd.conf or restart the ntp service]' \ - '(-R --nodns)'{-R,--nodns}'[don'\''t send DNS information to resolvconf or touch /etc/resolv.conf]' \ - '(-T --test)'{-T,--test}'[on receipt of discover messages, simply print the contents of the DHCP message to the console]' \ - '(-Y --nonis)'{-Y,--nonis}'[don'\''t touch /etc/yp.conf or restart the ypbind service]' + '(-b --background)'{-b,--background}'[Background immediately]' \ + '(-c --script)'{-c,--script}'[Use this script instead of the default]: :_files' \ + '(-D --duid)'{-d,--duid}'[Use a DHCP Unique Identifier]:id' \ + '(-d --debug)'{-d,--debug}'[Echo debug messages to the stderr and syslog]' \ + '(-E --lastlease)'{-E,--lastlease}'[If dhcpcd cannot obtain a lease, then try to use the last lease acquired for the interface]' \ + '--lastleaseextend[Same as the -E/--lastlease, but the lease will be retained even if it expires]' \ + \*{-e,--env}'[Push value to the environment for use in dhcpcd-run-hooks(8)]:env' \ + '(-g --reconfigure)'{-g,--reconfigure}'[dhcpcd will re-apply IP address, routing and run dhcpcd-run-hooks(8) for each interface]' \ + '(-F --fqdn)'{-F,--fqdn}'[Requests that the DHCP server updates DNS using FQDN instead of just a hostname]:fqdn' \ + '(-f --config)'{-f,--config}'[Specify a config to load instead of default]: :_files' \ + '(-h --hostname)'{-h,--hostname}'[Sends hostname to the DHCP server so it can be registered in DNS]:hostname' \ + '(-I --clientid)'{-I,--clientid}'[Send the clientid]:clientid' \ + '(-i --vendorclassid)'{-i,--vendorclassid}'[Override the DHCPv4 venderclassid field sent]:vendorclassid' \ + '(-j --logfile)'{-j,--logfile}'[Writes to the specified logfile]: :_files' \ + \*{-k,--release}'[Release its lease and de-configure the interface regardless of -p, --persistent option]: :_net_interfaces' \ + '(-l --leasetime)'{-l,--leasetime}'[Request a lease time of seconds. -1 represents an infinite lease time]:seconds' \ + '(-M --manager)'{-M,--manager}'[Start dhcpcd in Manager mode even if only one interface specified on the command line]' \ + '(-m --metric)'{-m,--metric}'[Metrics are used to prefer an interface over another one, lowest wins]:metric' \ + \*{-n,--rebind}'[Notifies dhcpcd to reload its configuration and rebind the specified interface]: :_net_interfaces' \ + \*{-N,--renew}'[Notifies dhcpcd to renew existing addresses on the specified interface]: :_net_interfaces' \ + \*{-o,--option}'[Request the DHCP option variable for use in dhcpcd-run-hooks]:option' \ + '(-p --persistent)'{-p,--persistent}"[Don't de-configure the interface and configuration at exit]" \ + '(-r --request)'{-r,--request}'[Request the address in the DHCP DISCOVER message]:address' \ + '(-s --inform)'{-s,--inform}'[Behaves exactly like -r, but sends a DHCP inform instead of a request]:address' \ + '--inform6[Performs a DHCPv6 Information Request]' \ + \*{-S,--static}'[Configures a static DHCP value]:value' \ + '(-t --timeout)'{-t,--timeout}'[Timeout after seconds]:seconds' \ + '(-u --userclass)'{-u,--userclass}'[Tags the DHCPv4 message with the userclass class]:class' \ + '(-v --vendor)'{-v,--vendor}'[Add an encapsulated vendor option]:vendor' \ + '(- *)--version[Display both program version and copyright information]' \ + '-w[Wait for an address to be assigned before forking to the background]' \ + '--waitip=[Wait for an address to assigned before forking to the background]: :(4 6)' \ + \*{-x,--exit}'[This will signal an existing dhcpcd process running on the interface to exit]: :_net_interfaces' \ + '(-y --reboot)'{-y,--reboot}'[Allow reboot seconds before moving to the discover phase if we have an old lease to use]:seconds' \ + '1:network interface:_net_interfaces' # Local Variables: # mode: Shell-Script