/usr/local/jetapps/usr/share/rear/lib
# # functions to use with HP Hardware RAID (Smart Array and compatible) # # function define_HPSSACLI() { # HP Smart Storage Administrator CLI is either hpacucli, hpssacli or ssacli if has_binary hpacucli ; then HPSSACLI=hpacucli elif has_binary hpssacli ; then HPSSACLI=hpssacli elif has_binary ssacli ; then HPSSACLI=ssacli fi } function find_array_from_drive() { # call $HPSSACLI for the slot $1 and find the array that contains the drive $2 while read ; do case $REPLY in *array*) ARRAY="${REPLY##*array }" ARRAY="${ARRAY%% *}" ;; *drive*$2*) echo $ARRAY return 0 ;; esac done < <($HPSSACLI ctrl slot=$1 show config) return 1 # here we come only if we did not find the drive }
.
Edit
..
Edit
.shellcheckrc
Edit
_input-output-functions.sh
Edit
array-functions.sh
Edit
authtoken-functions.sh
Edit
bareos-functions.sh
Edit
bootloader-functions.sh
Edit
borg-functions.sh
Edit
checklayout-workflow.sh
Edit
columns-functions.sh
Edit
config-functions.sh
Edit
drlm-functions.sh
Edit
dump-workflow.sh
Edit
filesystems-functions.sh
Edit
finalizeonly-workflow.sh
Edit
format-workflow.sh
Edit
framework-functions.sh
Edit
global-functions.sh
Edit
help-workflow.sh
Edit
hp_raid-functions.sh
Edit
layout-functions.sh
Edit
layoutonly-workflow.sh
Edit
linux-functions.sh
Edit
mail-functions.sh
Edit
mkbackup-workflow.sh
Edit
mkbackuponly-workflow.sh
Edit
mkboot-workflow.sh
Edit
mkopalpba-workflow.sh
Edit
mkrescue-functions.sh
Edit
mkrescue-workflow.sh
Edit
mountonly-workflow.sh
Edit
network-functions.sh
Edit
opal-functions.sh
Edit
opaladmin-workflow.sh
Edit
output-functions.sh
Edit
progresssubsystem.nosh
Edit
rear-shell.bashrc
Edit
recover-workflow.sh
Edit
restoreonly-workflow.sh
Edit
rsync-functions.sh
Edit
savelayout-workflow.sh
Edit
serial-functions.sh
Edit
sesam-functions.sh
Edit
shell-workflow.sh
Edit
udev-workflow.sh
Edit
uefi-functions.sh
Edit
validate-workflow.sh
Edit
validated
Edit
write-protect-functions.sh
Edit