2011-08-06 16:32:29 +04:00
|
|
|
.\" $NetBSD: MAKEDEV.local.8,v 1.8 2011/08/06 12:32:29 jmcneill Exp $
|
2007-02-27 01:35:04 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2007 The NetBSD Foundation, Inc.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2011-08-06 16:32:29 +04:00
|
|
|
.Dd August 6, 2011
|
2007-03-02 23:42:10 +03:00
|
|
|
.Dt MAKEDEV.LOCAL 8
|
2007-02-27 01:35:04 +03:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm MAKEDEV.local
|
|
|
|
.Nd create site-specific device special files
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2011-08-06 16:32:29 +04:00
|
|
|
.Op Fl fMsu
|
2007-02-27 01:35:04 +03:00
|
|
|
.Op Fl m Ar mknod
|
2007-12-15 20:28:09 +03:00
|
|
|
.Op Fl p Ar pax
|
2008-04-10 00:23:20 +04:00
|
|
|
.Op Fl t Ar mtree
|
2007-02-27 01:35:04 +03:00
|
|
|
.Bro Pa all | site-specific-argument Brc Op Ar ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
is used to create site-specific device special files.
|
|
|
|
Each argument may be the word
|
|
|
|
.Pa all
|
|
|
|
or a site-specific argument.
|
|
|
|
By default, there are no valid site-specific arguments,
|
|
|
|
and the
|
|
|
|
.Pa all
|
|
|
|
argument has no effect;
|
|
|
|
This may be changed by editing the script.
|
|
|
|
.Pp
|
|
|
|
The script is in
|
2008-04-10 00:23:20 +04:00
|
|
|
.Pa /dev/MAKEDEV.local .
|
|
|
|
Devices are created in the current working directory;
|
|
|
|
in normal use,
|
|
|
|
.Nm
|
|
|
|
should be invoked with
|
2007-02-27 01:35:04 +03:00
|
|
|
.Pa /dev
|
2008-04-10 00:23:20 +04:00
|
|
|
as the current working directory.
|
2007-02-27 01:35:04 +03:00
|
|
|
.Pp
|
|
|
|
Supported options for
|
|
|
|
.Nm
|
|
|
|
are the same as for
|
2007-12-15 20:28:09 +03:00
|
|
|
.Xr MAKEDEV 8 .
|
2007-02-27 01:35:04 +03:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width "/dev/MAKEDEV.local" -compact
|
|
|
|
.It Pa /dev
|
|
|
|
special device files directory
|
|
|
|
.It Pa /dev/MAKEDEV
|
|
|
|
script that invokes
|
|
|
|
.Nm
|
|
|
|
with the
|
|
|
|
.Pa all
|
|
|
|
argument.
|
|
|
|
.It Pa /dev/MAKEDEV.local
|
|
|
|
script described in this man page
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr config 1 ,
|
|
|
|
.Xr intro 4 ,
|
|
|
|
.Xr MAKEDEV 8 ,
|
|
|
|
.Xr mknod 8
|
2007-03-03 09:53:41 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command appeared in
|
|
|
|
.Bx 4.2 .
|
|
|
|
Handling of the same command line options as
|
|
|
|
.Xr MAKEDEV 8 ,
|
|
|
|
and the use of
|
|
|
|
.Xr MAKEDEV 8
|
|
|
|
as a function library, was added in
|
|
|
|
.Nx 5.0 .
|
|
|
|
.Sh NOTES
|
|
|
|
The relationship between
|
|
|
|
.Nm
|
|
|
|
and
|
|
|
|
.Xr MAKEDEV 8
|
|
|
|
is complex:
|
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
If
|
|
|
|
.Xr MAKEDEV 8
|
|
|
|
is invoked with the
|
|
|
|
.Pa all
|
|
|
|
or
|
|
|
|
.Pa local
|
|
|
|
argument, then it will invoke
|
|
|
|
.Nm
|
2007-03-11 18:54:54 +03:00
|
|
|
as a child process, with options similar to
|
|
|
|
those that were originally passed to
|
2007-03-03 09:53:41 +03:00
|
|
|
.Xr MAKEDEV 8 ,
|
2007-03-11 18:54:54 +03:00
|
|
|
and with the
|
2007-03-03 09:53:41 +03:00
|
|
|
.Pa all
|
|
|
|
argument.
|
|
|
|
.It
|
|
|
|
.Nm
|
|
|
|
uses shell functions defined in
|
|
|
|
.Xr MAKEDEV 8 .
|
|
|
|
This is done by loading
|
|
|
|
.Xr MAKEDEV 8
|
|
|
|
using the shell
|
|
|
|
.Dq \&.
|
|
|
|
command, with the
|
|
|
|
.Ev MAKEDEV_AS_LIBRARY
|
|
|
|
variable set (to inform
|
|
|
|
.Xr MAKEDEV 8
|
|
|
|
that it should behave as a function library,
|
|
|
|
not as an independent program).
|
|
|
|
.El
|