#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. /etc/init.d/target start > /dev/null echo "Starting Linux-iSCSI.org VM Demo!" sleep 2; sh /sbin/LIO-demo.sh stop tty1 clear start tty1 > /dev/null printf "Linux-iSCSI.org Target configuration complete!\r\n\n"; printf "Go ahead and login as root and run 'LIO-console.pl' to load the console.\r\n\n"; printf "First, you will want to use the UP+DOWN keys to scroll through the console commands and find 'listnet' to see the available iSCSI network portals.\r\n\n"; printf "The iSCSI network portals are the IPs addresses to give to your iSCSI Initiators so they can login to the LIO Target VM.\r\n\n"; printf "Let us know what you think of the demo! Goto http://Linux-iSCSI.org and join the mailing list.\r\n\n" printf "Have Fun! :-)\r\n"; exit 0