summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-02-13 19:32:30 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-14 16:40:13 +0100
commit3b7a102d3e64ed2d6b43d8e19d94568d695931a3 (patch)
tree54fa141901fb062d1de0c4db8d84cc336d286907 /commands/Kconfig
parent6280e991eef453aba8ed1187db60992fad785d7d (diff)
downloadbarebox-3b7a102d3e64ed2d6b43d8e19d94568d695931a3.tar.gz
barebox-3b7a102d3e64ed2d6b43d8e19d94568d695931a3.tar.xz
Add readf command
The readf command is useful to read the content of a file into a shell variable. It should be used for ascii content and thus stops reading at all nonprintable characters including newline. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r--commands/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index 1e07b5b7ac..352e8bf46f 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -57,6 +57,12 @@ config CMD_READLINE
tristate
prompt "readline"
+config CMD_READF
+ tristate
+ prompt "readf"
+ help
+ The readf command is used to read a files content into a shell variable.
+
config CMD_LET
tristate
prompt "let"