@ -1,7 +1,8 @@
# --- T2 -COPYRIGHT-NOTE-BEGIN ---
# --- SDE -COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
#
# T2 SDE: package/.../stone/stone_mod_install.sh
# Filename: package/.../stone/stone_mod_install.sh
# Copyright (C) 2007 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
# Copyright (C) 1998 - 2003 Clifford Wolf
#
#
@ -11,7 +12,7 @@
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# GNU General Public License can be found in the file COPYING.
# --- T2 -COPYRIGHT-NOTE-END ---
# --- SDE -COPYRIGHT-NOTE-END ---
part_mounted_action( ) {
part_mounted_action( ) {
if gui_yesno " Do you want to un-mount the filesystem on $1 ? "
if gui_yesno " Do you want to un-mount the filesystem on $1 ? "
@ -134,7 +135,7 @@ de-activate it.\" ''"
disk_add( ) {
disk_add( ) {
local x y = 0
local x y = 0
cmd = " $cmd 'Edit partition table of $1 :' 'disk_action $1 ' "
cmd = " $cmd 'Edit partition table of $1 :' 'disk_action $1 ' "
for x in $( cd /dev/ ; ls $1 [ 0-9] * 2> /dev/null )
for x in $( cd /dev/ ; ls $1 $2 [ 0-9] * 2> /dev/null )
do
do
part_add $x ; y = 1
part_add $x ; y = 1
done
done
@ -174,6 +175,52 @@ This dialog allows you to modify your discs parition layout and to create filesy
disk_add $x
disk_add $x
found = 1
found = 1
done
done
#
# Check for Special Drive Array Controllers
#
# Mylex DAC960/AcceleRAID/eXtremeRAID PCI RAID Controllers
# Driver: DAC960
# up to 8 controllers, 32 logical drives, 7 partitions
# Device: /dev/rd/c<controller>d<logical drive>p<partition>
#
# Compaq Intelligent Drive Array
# Driver: cpqarray
# up to 8 controllers, 16 logical drives, 15 partitions
# Device: /dev/ida/c<controller>d<logical drive>p<partition>
#
# Compaq Next Generation Drive Array
# Driver: cciss
# up to 8 controllers, 16 logical drives, 15 partitions
# Device: /dev/cciss/c<controller>d<logical drive>p<partition>
#
# cmax = maximum number of controllers - 1
# dmax = maximum number of logical drives - 1
for x in rd cpqarray cciss ; do
if [ -d /dev/$x ] ; then
case $x in
rd)
cmax = 7
dmax = 31
; ;
cpqarray| cciss)
cmax = 7
dmax = 15
; ;
esac
for c in $( seq 0 $cmax ) ; do
for d in $( seq 0 $dmax ) ; do
if [ -b /dev/$x /c${ c } d${ d } ] ; then
disk_add $x /c${ c } d${ d } p
found = 1
fi
done
done
fi
done
for x in $( cat /etc/lvmtab 2> /dev/null ) ; do
for x in $( cat /etc/lvmtab 2> /dev/null ) ; do
vg_add " $x "
vg_add " $x "
found = 1
found = 1