diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-30 15:36:52 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-30 15:42:39 +0100 |
commit | e8018cf5f0eb6d70fb62a855206efe41918b726c (patch) | |
tree | a1ece5359cb1aba96f178e9bf6ea1784296fad61 /commands/Kconfig | |
parent | cc9fffc825d7404315c60b70f68f293c355b90fd (diff) | |
download | barebox-e8018cf5f0eb6d70fb62a855206efe41918b726c.tar.gz barebox-e8018cf5f0eb6d70fb62a855206efe41918b726c.tar.xz |
add filetype command support
This adds support for a filetype detection command. It can be
used to print a filename on the console or to set a variable
with the detection result for use in shell scripts.
The command also has an option to print the known filetypes
so that a user knows what to match for.
Based on an earlier version from Jean-Christophe.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r-- | commands/Kconfig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig index 16706d36c3..460bc2cf79 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -230,6 +230,11 @@ config CMD_TFTP barebox can mount tftp as a filesystem. This command is only needed to preserve backward compatibility to the old tftp command. +config CMD_FILETYPE + tristate + select FILETYPE + prompt "filetype" + endmenu menu "console " |