I had posted this in the zen3 and 4 group but havent heard an answer so im
posting here too.
-


When using a script to determine whether or not a computer has been imaged
(new to network) if the user chooses no then reboots, it says there is no
work to do, somehow it deletes either the mbr or corrupts the zisdata. We
have to reboot, go into manaul mode imaging, do a zisedit -c and then start
again.

If the user chooses no, it should power down (halt), and next time they
reboot, they should see the same screen. Telling them its going to be
imaged. Does anyone know how to fix this?... i have pasted the script below.
And part 2, when they choose N, for some reason it goes into init 6, when i
have said init 0

#======== Start of Script ========

# Based on "Making a Scripted Image..."

ZISNAME='zisview Name'

IMGSRVR=myserverip

#Replace with proper addon images

echo "Warning!!! ASSUMING THIS IS A NEW WORKSTATION. THE IMAGE PROCESS WILL
BEGIN"

echo "If this is not a new workstation, power down and call the help desk"

echo -n "CONTINUE Y/N ( case sensitive )"

read AGREE

if ["$AGREE" = "Y"];then

if test ! $ZISNAME; then

echo -e "No image-safe data found."

echo -e "Assuming this is a new workstation."

while test ! $WSNAME; do

echo -n "Enter the workstation's name:"

read WSNAME;

done;

if test $WSNAME; then

zisedit -c

zisedit Name=$WSNAME;

fi

echo "Loading Image"

img rp $IMGSVR //$IMGSRVR/my.zmg

mg rp $IMGSVR //$IMGSRVR/myaddon.zmg

reboot

fi

else

init 0

exit 0

#======== End of Script=========