#! /bin/bash
#
# $1 = iSCSI Channel ID
#

if [ -d /sys/class/iscsi_initiator_core ]; then
	/sbin/sysfs.iscsi-map-channel $1
	RET=$?
	exit $RET
fi

if [ -d /proc/iscsi_initiator ]; then
	/sbin/proc.iscsi-map-channel $1
	RET=$?
	exit $RET
fi

echo "**ERROR** - Cannot locate /sys/class/iscsi_initiator_core or /proc/iscsi_initiator"
exit 1


