diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-02-19 18:22:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-03-18 15:03:26 +0100 |
commit | b5e5b06d8bf87908a5c4bec87e751ee2681cad4f (patch) | |
tree | aed701ab0ed8be47f39c24c880dc14086fe9e097 /commands/Kconfig | |
parent | b55fbf7f5f14a8a60b4f5bdf1416c25fc4d3e59d (diff) | |
download | barebox-b5e5b06d8bf87908a5c4bec87e751ee2681cad4f.tar.gz barebox-b5e5b06d8bf87908a5c4bec87e751ee2681cad4f.tar.xz |
Add automount support
This patch adds an automount command which makes it possible
to execute a script when a certain directory is first accessed.
It's the commands responsibility to make this directory available
(bringing devices up and mounting it). This results in automount
support which makes sure that from the shell every file can
be accessed without having to care for device bringup. Bringing
up devices may be expensive (USB, dhcp). The automount support
makes it easy for the environment to bringup devices when they
are actually needed.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r-- | commands/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig index e332a85f1f..7a8811e92f 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -181,6 +181,16 @@ config CMD_NANDTEST select PARTITION_NEED_MTD prompt "nandtest" +config CMD_AUTOMOUNT + tristate + select FS_AUTOMOUNT + prompt "automount" + help + automount allows it to automatically execute a script when a certain + directory is accessed for the first time. The script should then make + this directory available (discover USB devices, bring network interface + up and finally mount the filesystem). + endmenu menu "console " |