Commit 68cb6a88 authored by Angelo Compagnucci's avatar Angelo Compagnucci Committed by Thomas Petazzoni
Browse files

docs/manual: documentation for recursive makedevs syntax



This patch adds the documentation for the new makedevs
recursive syntax.

[Thomas: s/folder/directory/ as suggested by Yann.]

Signed-off-by: default avatarAngelo Compagnucci <angelo.compagnucci@gmail.com>
Reviewed-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 410f9b60
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ There are a few non-trivial blocks:
- +type+ is the type of the file, being one of:
  * f: a regular file
  * d: a directory
  * r: a directory recursively
  * c: a character device file
  * b: a block device file
  * p: a named pipe
@@ -41,6 +42,13 @@ this syntax, you will need to put:
/usr/bin/foobar f 644 0 0 - - - - -
----

Alternatively, if you want to change owner/permission of a directory
recursively, you can put:

----
/usr/share/myapp r 750 myuser myuser - - - - -
----

On the other hand, if you want to create the device file +/dev/hda+
and the corresponding 15 files for the partitions, you will need for
+/dev/hda+: