ungleich-tools/raid-add-unconfigured-disk
Nico Schottelius 21baaa0c06 Quotes
2018-02-24 23:42:09 +01:00

14 lines
268 B
Bash
Executable file

#!/bin/sh
# Nico Schottelius, 2018-02-24
# Copyright ungleich glarus ag
if [ $# -ne 2 ]; then
echo $0: enclosure:slot controller
echo "f.i. $0 32:4 0"
exit 1
fi
diskslot=$1; shift
controller=$1; shift
megacli -CfgLdAdd -r0 [${diskslot}] -a${controller}