#!/bin/sh

# This script is invoked from FTP or WBI when a user provides an unbundled SC firmware file. (put filename.fla fla)
# Expectations:
# - filename is in the format "image.fla"
# - firmware file is located in /mnt/ramdisk

source /usr/bin/utils.sh

actComp="/sc"

apiActive $actComp "Sending code to Storage Controller."
echo "Sending code to Storage Controller."

/usr/bin/capi.app --loadsc /mnt/ramdisk/image.fla --component "$actComp" -x

exit $?

