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 8 "Aug 13, 2007"
8 rem_drv \- remove a device driver from the system
12 \fBrem_drv\fR [\fB-b\fR \fIbasedir\fR] \fIdevice_driver\fR
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
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(8)).
29 The following options are supported:
33 \fB\fB-b\fR \fIbasedir\fR\fR
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
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).
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.
67 \fBExample 1 \fRRemoving the \fBsd\fR Driver
70 The following example removes the \fBsd\fR driver from use:
81 \fBExample 2 \fRRemoving a Diskless Client
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.
90 example% rem_drv \fB-b\fR /export/root/sun1 sd
97 Note the caveat on the use of the \fB-b\fR option in the description of that
103 \fBadd_drv\fR(8), \fBkernel\fR(8), \fBupdate_drv\fR(8), \fBattributes\fR(5),
104 \fBzones\fR(5), \fBdevfs\fR(7FS)