diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-11 11:40:34 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-31 12:35:45 +0200 |
commit | 36554506c9c7a0a3e3e4a8cf3b01b31d4737d5c3 (patch) | |
tree | 3419622f47d38157704a197689b1eeecea5ce888 /net | |
parent | 18cce41473e3c2dbeb50e28daed36411112d72df (diff) | |
download | barebox-36554506c9c7a0a3e3e4a8cf3b01b31d4737d5c3.tar.gz barebox-36554506c9c7a0a3e3e4a8cf3b01b31d4737d5c3.tar.xz |
net: ifup command: add ethernet device completion
ifup usually takes an ethernet device, so use ethernet device completion
for the command.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/ifup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ifup.c b/net/ifup.c index e5e8ef2346..fa2c52ff8b 100644 --- a/net/ifup.c +++ b/net/ifup.c @@ -21,6 +21,7 @@ #include <environment.h> #include <command.h> #include <common.h> +#include <complete.h> #include <getopt.h> #include <dhcp.h> #include <net.h> @@ -341,6 +342,7 @@ BAREBOX_CMD_START(ifup) BAREBOX_CMD_DESC("bring a network interface up") BAREBOX_CMD_OPTS("[-af] [INTF]") BAREBOX_CMD_GROUP(CMD_GRP_NET) + BAREBOX_CMD_COMPLETE(eth_complete) BAREBOX_CMD_HELP(cmd_ifup_help) BAREBOX_CMD_END |