summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-30 15:36:52 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-30 15:42:39 +0100
commite8018cf5f0eb6d70fb62a855206efe41918b726c (patch)
treea1ece5359cb1aba96f178e9bf6ea1784296fad61 /commands/Kconfig
parentcc9fffc825d7404315c60b70f68f293c355b90fd (diff)
downloadbarebox-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/Kconfig5
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 "