Quotes
This commit is contained in:
parent
f76ee1f539
commit
21baaa0c06
2 changed files with 3 additions and 3 deletions
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
if [ $# -ne 2 ]; then
|
if [ $# -ne 2 ]; then
|
||||||
echo $0: enclosure:slot controller
|
echo $0: enclosure:slot controller
|
||||||
echo "f.i. $0 32:4 0
|
echo "f.i. $0 32:4 0"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
diskslot=$1; shift
|
diskslot=$1; shift
|
||||||
controller=$1; shift
|
controller=$1; shift
|
||||||
|
|
||||||
megacli -CfgLdAdd -r0 [$diskslot] -a${controller}
|
megacli -CfgLdAdd -r0 [${diskslot}] -a${controller}
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
# Nico Schottelius, 2018-02-24
|
# Nico Schottelius, 2018-02-24
|
||||||
# Copyright ungleich glarus ag
|
# Copyright ungleich glarus ag
|
||||||
|
|
||||||
megacli -PDList -aall | grep -e "^Enc" -e ^Slot -e ^Raw -e ^Firm
|
megacli -PDList -aall | grep -e "^Enclosure Device ID" -e "^Slot Number" -e ^Raw -e ^Firm
|
||||||
|
|
Loading…
Reference in a new issue