diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-01 04:41:57 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-01 04:41:57 +0300 |
commit | c348e0bc7bb104c9e2385a0d1c29099a7033adf8 (patch) | |
tree | e27236bfd9174e46be13db037417cfc6cff471b1 /docs/mdev.txt | |
parent | 8c69afd992d7cc6c2fc7dea59c3c2bd3f3c21f15 (diff) |
add a mini-faq about std{in,out,err}
Diffstat (limited to 'docs/mdev.txt')
-rw-r--r-- | docs/mdev.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/mdev.txt b/docs/mdev.txt index 0b2c37d99..4a4451b4d 100644 --- a/docs/mdev.txt +++ b/docs/mdev.txt @@ -62,10 +62,12 @@ The special characters have the meaning: * Run both after creating and before removing the device. The command is executed via the system() function (which means you're giving a -command to the shell), so make sure you have a shell installed at /bin/sh. +command to the shell), so make sure you have a shell installed at /bin/sh. You +should also keep in mind that the kernel executes hotplug helpers with stdin, +stdout, and stderr connected to /dev/null. For your convenience, the shell env var $MDEV is set to the device name. So if -the device 'hdc' was matched, MDEV would be set to "hdc". +the device "hdc" was matched, MDEV would be set to "hdc". ---------- FIRMWARE |