Displaying 1 result from an estimated 1 matches for "initiator_nam".
Did you mean:
initiator_name
2009 Oct 23
1
[PATCH node] Add iSCSI initiator setup option
...uot;Enter Q to quit\n"
+ read REPLY
+ if [[ $REPLY == "q" || $REPLY == "Q" ]]; then
+ printf "Aborting due to user request"
+ return
+ fi
+
+ set_initiator $REPLY
+}
+
+function set_initiator {
+ if [ -z "$1" ]; then
+ INITIATOR_NAME=$(iscsi-iname)
+ else
+ INITIATOR_NAME=$1
+ fi
+
+ echo "InitiatorName=$INITIATOR_NAME" > $INITIATOR_FILE
+ ovirt_store_config $INITIATOR_FILE
+ rc=$?
+ if [ $rc = 0 ]; then
+ printf "Initiator name set as: $INITIATOR_NAME\n"
+ else
+...