8980 BIOS clock is sometimes one hour fast
[unleashed.git] / usr / src / man / man1m / rem_drv.1m
blob2028948a6b6b5ac2cc681e8e8dfcaf73a021df88
1 '\" te
2 .\" Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH REM_DRV 1M "Aug 13, 2007"
7 .SH NAME
8 rem_drv \- remove a device driver from the system
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBrem_drv\fR [\fB-b\fR \fIbasedir\fR] \fIdevice_driver\fR
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The \fBrem_drv\fR command informs the system that the device driver
19 \fIdevice_driver\fR is no longer valid. If possible, \fBrem_drv\fR unloads
20 \fIdevice_driver\fR from memory. \fBrem_drv\fR also updates the system driver
21 configuration files.
22 .sp
23 .LP
24 If \fBrem_drv\fR has been executed, the next time the system is rebooted it
25 automatically performs a reconfiguration boot (see \fBkernel\fR(1M)).
26 .SH OPTIONS
27 .sp
28 .LP
29 The following options are supported:
30 .sp
31 .ne 2
32 .na
33 \fB\fB-b\fR \fIbasedir\fR\fR
34 .ad
35 .sp .6
36 .RS 4n
37 Sets the path to the root directory of the diskless client. Used on the server
38 to execute \fBrem_drv\fR for a client. The client machine must be rebooted to
39 unload the driver.
40 .LP
41 Note -
42 .sp
43 .RS 2
44 The root file system of any non-global zones must not be referenced with the
45 \fB-b\fR option. Doing so might damage the global zone's file system, might
46 compromise the security of the global zone, and might damage the non-global
47 zone's file system. See \fBzones\fR(5).
48 .RE
49 .RE
51 .sp
52 .ne 2
53 .na
54 \fB\fB-C\fR\fR
55 .ad
56 .sp .6
57 .RS 4n
58 Remove dangling device attribute nodes bound to the driver being removed. This
59 causes any device ownership or permissions customizations made to any node not
60 to  be preserved if the driver is added back. Recommended for use when
61 reprovisioning a machine from one configuration or use to another where past
62 administrative customizations might not be desired.
63 .RE
65 .SH EXAMPLES
66 .LP
67 \fBExample 1 \fRRemoving the \fBsd\fR Driver
68 .sp
69 .LP
70 The following example removes the \fBsd\fR driver from use:
72 .sp
73 .in +2
74 .nf
75 example% rem_drv sd
76 .fi
77 .in -2
78 .sp
80 .LP
81 \fBExample 2 \fRRemoving a Diskless Client
82 .sp
83 .LP
84 The following example removes the driver from the \fBsun1\fR diskless client.
85 The driver is not uninstalled or unloaded until the client machine is rebooted.
87 .sp
88 .in +2
89 .nf
90 example% rem_drv \fB-b\fR /export/root/sun1 sd
91 .fi
92 .in -2
93 .sp
95 .sp
96 .LP
97 Note the caveat on the use of the \fB-b\fR option in the description of that
98 option, above.
100 .SH SEE ALSO
103 \fBadd_drv\fR(1M), \fBkernel\fR(1M), \fBupdate_drv\fR(1M), \fBattributes\fR(5),
104 \fBzones\fR(5), \fBdevfs\fR(7FS)