8980 BIOS clock is sometimes one hour fast
[unleashed.git] / usr / src / man / man1m / putdgrp.1m
blob25e688f6ce39771270a70fefb7d3e74c0f28e183
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1997 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 PUTDGRP 1M "Jul 5, 1990"
7 .SH NAME
8 putdgrp \- edits device group table
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBputdgrp\fR [\fB-d\fR] \fIdgroup\fR [\fIdevice\fR]...
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 \fBputdgrp\fR modifies the device group table. It performs two kinds of
19 modification. It can modify the table  by creating a new device group or
20 removing a device group. It can also change group definitions by  adding or
21 removing a device from the group definition.
22 .sp
23 .LP
24 When the command is invoked with only a \fIdgroup\fR specification, the command
25 adds the specified group name to the device group table if it does not already
26 exist. If the \fB-d\fR option is also used with only the \fIdgroup\fR
27 specification, the command deletes the group from the table.
28 .sp
29 .LP
30 When the command is invoked with both a \fIdgroup\fR and a \fIdevice\fR
31 specification, it adds the given device name(s) to the group definition. When
32 invoked with both arguments and the \fB-d\fR option, the command deletes the
33 device name(s) from the group definition.
34 .sp
35 .LP
36 When the command is invoked with both a \fIdgroup\fR and a \fIdevice\fR
37 specification and the device group does not exist, it creates the group and
38 adds the specified devices to that new group.
39 .SH OPTIONS
40 .sp
41 .LP
42 The following options are supported:
43 .sp
44 .ne 2
45 .na
46 \fB\fB-d\fR\fR
47 .ad
48 .RS 6n
49 Delete the group or, if used with \fIdevice\fR, delete the device  from a group
50 definition.
51 .RE
53 .SH OPERANDS
54 .sp
55 .LP
56 The following operands are supported:
57 .sp
58 .ne 2
59 .na
60 \fB\fIdgroup\fR\fR
61 .ad
62 .RS 10n
63 Specify a device group name.
64 .RE
66 .sp
67 .ne 2
68 .na
69 \fB\fIdevice\fR\fR
70 .ad
71 .RS 10n
72 Specify the pathname or alias of the device that is to be added to, or deleted
73 from, the device group.
74 .RE
76 .SH EXIT STATUS
77 .sp
78 .LP
79 The following exit values are returned:
80 .sp
81 .ne 2
82 .na
83 \fB\fB0\fR\fR
84 .ad
85 .RS 5n
86 Successful completion.
87 .RE
89 .sp
90 .ne 2
91 .na
92 \fB\fB1\fR\fR
93 .ad
94 .RS 5n
95 Command syntax was incorrect, an invalid option was used,  or an internal error
96 occurred.
97 .RE
99 .sp
100 .ne 2
102 \fB\fB2\fR\fR
104 .RS 5n
105 Device group table could not be opened for reading or a new device group table
106 could not be created.
110 .ne 2
112 \fB\fB3\fR\fR
114 .RS 5n
115 If executed with the  \fB-d\fR option, indicates that an entry in the device
116 group table for the device group  \fIdgroup\fR does not exist and so cannot be
117 deleted. Otherwise, indicates that the  device group \fIdgroup\fR already
118 exists and cannot be added.
122 .ne 2
124 \fB\fB4\fR\fR
126 .RS 5n
127 If executed with the  \fB-d\fR option, indicates that the device group
128 \fIdgroup\fR does not have as members one or more of the specified devices.
129 Otherwise, indicates that the device group  \fIdgroup\fR already has one or
130 more of the specified devices as members.
133 .SH EXAMPLES
135 \fBExample 1 \fRAdding a new device group.
138 The following example adds a new device group:
141 .in +2
143 example#  \fBputdgrp floppies\fR
145 .in -2
149 \fBExample 2 \fRAdding a device to a device group.
152 The following example adds a device to a device group:
155 .in +2
157 example#  \fBputdgrp floppies diskette2\fR
159 .in -2
163 \fBExample 3 \fRDeleting a device group.
166 The following example deletes a device group:
169 .in +2
171 example#  \fBputdgrp \fR\fB-d\fR\fB floppies\fR
173 .in -2
177 \fBExample 4 \fRDeleting a device from a device group.
180 The following example deletes a device from a device group:
183 .in +2
185 example#  \fBputdgrp \fR\fB-d\fR\fB floppies diskette2\fR
187 .in -2
190 .SH FILES
192 .ne 2
194 \fB\fB/etc/dgroup.tab\fR\fR
196 .RS 19n
200 .SH SEE ALSO
203 \fBlistdgrp\fR(1M), \fBputdev\fR(1M), \fBattributes\fR(5)