summaryrefslogtreecommitdiffstats
path: root/sbin/mknod
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-12-29 00:37:52 +0000
committeralfred <alfred@FreeBSD.org>2003-12-29 00:37:52 +0000
commitd82d9c329c39a022816fffb6b5ba4ec7c56f97da (patch)
treee0ea4117b8683f9933789924f2a221c5114b97a7 /sbin/mknod
parent55f5e0250560a3bd62387b7396d6658959fb8703 (diff)
downloadFreeBSD-src-d82d9c329c39a022816fffb6b5ba4ec7c56f97da.zip
FreeBSD-src-d82d9c329c39a022816fffb6b5ba4ec7c56f97da.tar.gz
Document that mknod(8) can be used to undelete entries under devfs.
Diffstat (limited to 'sbin/mknod')
-rw-r--r--sbin/mknod/mknod.813
1 files changed, 13 insertions, 0 deletions
diff --git a/sbin/mknod/mknod.8 b/sbin/mknod/mknod.8
index 55e3f2f..ea250da 100644
--- a/sbin/mknod/mknod.8
+++ b/sbin/mknod/mknod.8
@@ -103,6 +103,19 @@ so that a leading
indicates a hexadecimal number, and a leading
.Ql 0
will cause the number to be interpreted as octal.
+.Pp
+The
+.Nm
+tool can be used to recreate deleted device nodes under a
+.Xr devfs 5 ,
+mount point by invoking it using dummy arguments. Example:
+.Bd -literal -offset indent
+mknod cd0 c 0 0
+.Ed
+.Pp
+Where
+.Fa cd0
+is the name of the deleted device node.
.Sh COMPATIBILITY
The
.Xr chown 8 Ns - Ns
OpenPOWER on IntegriCloud