Imported Upstream version 4.0.43
[platform/upstream/mtools.git] / scripts / add-disk
1 #!/bin/sh
2
3 # Copyright 1997 Tim Hoogasian (hoogs@usa.net)
4 # Copyright 1997,1998,2001,2002 Alain Knaff.
5 # This file is part of mtools.
6 #
7 # Mtools is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # Mtools is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with Mtools.  If not, see <http://www.gnu.org/licenses/>.
19
20 #
21 # add-disk
22 # Contributed by Tim Hoogasian (hoogs@usa.net)
23 #
24 #       Runs the commands to make Solaris locate a new disk that
25 #       has been plugged in after the system was booted.
26 #
27
28 # This script can be used on a Solaris system to add a SCSI disk
29 # without needing to reboot/reconfigure the system.  It's short and
30 # simple, but it's quite handy -- and it saves you from having to
31 # remember the individual commands.... :-)
32
33 # You might also want to use the format.dat file if you don't have one
34 # yet.  It is in this same mtools/scripts directory, and should be
35 # stored in /etc, or appended to the existing format.dat file
36
37 # All you have to do is attach the Jaz drive, check to make sure there
38 # isn't SCSI address conflict (Zip and Jaz media tend to default to ID
39 # number 5) power it up, run "add-disk", insert the media, and GO!
40
41
42 /usr/sbin/drvconfig
43 /usr/sbin/devlinks
44 /usr/sbin/disks                 # or /usr/sbin/tapes for tapes
45 /usr/ucb/ucblinks               # Compatibility links
46
47 exit 0