summaryrefslogtreecommitdiffstats
path: root/sbin/mknod/mknod.8
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-01-31 11:48:25 +0000
committered <ed@FreeBSD.org>2010-01-31 11:48:25 +0000
commit98370595619170317553259ee369d70c9c7717b8 (patch)
treec7d98933a2f1d73a42370fdc8efc96f22dbf24af /sbin/mknod/mknod.8
parent0f402c23311b40ba88b3ea3c95cf73ee0b6cf4d4 (diff)
downloadFreeBSD-src-98370595619170317553259ee369d70c9c7717b8.zip
FreeBSD-src-98370595619170317553259ee369d70c9c7717b8.tar.gz
Allow mknod(8) to be only invoked with a pathname as an argument.
In 99% of the cases people just want to recreate device nodes they removed from /dev. There is no reason to pass the additional "c 0 0" anymore. Also slightly improve the manpage. Remove references to non-existent device names and platforms.
Diffstat (limited to 'sbin/mknod/mknod.8')
-rw-r--r--sbin/mknod/mknod.818
1 files changed, 10 insertions, 8 deletions
diff --git a/sbin/mknod/mknod.8 b/sbin/mknod/mknod.8
index 9de2804..22efbd1 100644
--- a/sbin/mknod/mknod.8
+++ b/sbin/mknod/mknod.8
@@ -28,7 +28,7 @@
.\" @(#)mknod.8 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$
.\"
-.Dd October 31, 2009
+.Dd January 31, 2010
.Dt MKNOD 8
.Os
.Sh NAME
@@ -37,6 +37,8 @@
.Sh SYNOPSIS
.Nm
.Ar name
+.Nm
+.Ar name
.Op Cm b | c
.Ar major minor
.Op Ar owner : Ns Ar group
@@ -52,14 +54,14 @@ systems.
The
.Nm
utility creates device special files.
-To make nodes manually, the four required arguments are:
+To make nodes manually, the arguments are:
.Pp
.Bl -tag -width indent
.It Ar name
Device name, for example
-.Dq sd
-for a SCSI disk on an HP300 or a
-.Dq pty
+.Pa /dev/da0
+for a SCSI disk or
+.Pa /dev/pts/0
for pseudo-terminals.
.It Cm b | c
Type of device.
@@ -110,13 +112,13 @@ The
.Nm
utility can be used to recreate deleted device nodes under a
.Xr devfs 5
-mount point by invoking it using dummy arguments.
+mount point by invoking it with only a filename as an argument.
Example:
.Pp
-.Dl "mknod cd0 c 0 0"
+.Dl "mknod /dev/cd0"
.Pp
where
-.Dq Li cd0
+.Pa /dev/cd0
is the name of the deleted device node.
.Sh COMPATIBILITY
The
OpenPOWER on IntegriCloud