Okay,

Has anyone had any problem using under 7.0? I've been modifying Henny Van der Ben menuing script but when I go to put and image down a good majority of the time it goes directly to flushing buffer and the exit message says that it was terminated by the operator.

In testing the script I even copied the scripts directly from the CS website, but I'm still having the same problems.

Here are my scripts

getmenu.s:

#!/bin/ash
#
#
# Author:
# Sibrand@Minnen.net, Henny@vanderBen.com
#
# Version:
# 1.0 07 july 2005
#
# Function:
# Get imaging menu from TFTP server, make it bootable and start menu.s
################################################## #######################
# Get menu.txt from ZEN server and rename it in /bin/menu.s
tftp $PROXYADDR -c get menu.txt /bin/menu.s
tftp $PROXYADDR -c get base.txt /bin/base.txt
tftp $PROXYADDR -c get default.txt /bin/default.txt
tftp $PROXYADDR -c get drivers.txt /bin/drivers.txt
# make menu.s executable
chmod 777 /bin/menu.s
# start menu.s
menu.s


menu.txt (menu.s):

#!/bin/bash
unc=zenworks/images
debug()
{
keypress=""
echo ""
read -p"Press any key to contiune." -n1 -s keypress
}
acthdd()
{
fdisk -l | grep "^/dev/hd"|while read device boot start end blocks id system
do hdparm -d1 $device
done
}
REMpart()
{
img pd-all
}
REMzis()
{
while true
do
clear
remove=""
read -p "Clear ZIS Info [Y]es/[N]o? " -n1 remove

if test "$remove" == "y" || test "$remove" == "Y"
then
zisedit -r
break
elif test "$remove" == "n" || test "$remove" == "N"
then
break
fi
done
}
REMc()
{
img pd1
}
actpart()
{
img pa1
}
zenimg()
{
img rp $PROXYADDR //$PROXYADDR/$unc/$imagefile a1:p1
}
restpart()
{
cat /bin/default.txt|while read imagefile
do zenimg
done
}
instmnu()
{
clear
echo "###################################"
echo "######### Base Image menu #########"
echo "###################################"
echo ""
echo ""
cat /bin/base.txt|while read menuitem nummer naam
do echo " "[$nummer] $menuitem
done
echo " [0] Back"
echo
xpimg=""
read -p"Choice: " -n1 xpimg

cat /bin/base.txt|while read menuitem nummer imagefile
do if test $xpimg -eq $nummer
then
zenimg
exit
fi
done
}
drvmnu()
{
clear
echo "##########################"
echo "####### Driver menu ######"
echo "##########################"
echo ""
echo ""
########### Definition menu
cat /bin/drivers.txt|while read menuitem nummer naam
do echo " "[$nummer] $menuitem
done
echo " [0] Exit"
echo ""
drvimg=""
read -p"Choice: " -n1 drvimg

cat /bin/drivers.txt|while read menuitem nummer imagefile
do if test $drvimg -eq $nummer
then zenimg
break
fi
done
if test $drvimg -ne 0
then
reboot
else
echo "Thanx"
fi
}

while true
do
clear
echo "################################################# ##"
echo "####### Image menu 1.2 #######"
echo "################################################# ##"
echo ""
echo ""
echo " [1] Restore Workstation"
echo " [2] Restore Workstation with custom C: partition"
echo " [3] Restore C: drive"
echo " [4] Create image"
echo " [0] Exit"
echo ""
image=""
read -p"choice: " -n1 image
case $image in

"1" )
acthdd
REMzis
REMpart
img pc1 fat32 10240
img pc2 ntfs
instmnu
if test $xpimg -ne 0
then
restpart
actpart
drvmnu
fi
;;

"2" )
clear
echo "Size C: partition (in Mb):"
read part
acthdd
REMzis
REMpart
img pc1 fat32 $part
img pc2 ntfs
instmnu
if test $xpimg -ne 0
then
restpart
actpart
drvmnu
fi
;;

"3" )
clear
echo "Restore C:"
acthdd
REMzis
REMc
img pc1 fat32 10240
instmnu
if test $xpimg -ne 0
then
restpart
actpart
drvmnu
fi
;;

"4" )
clear
echo "Give name of image without zmg"
read naam
img mp $PROXYADDR //$PROXYADDR/$unc/$naam.zmg
;;

"0" )
clear
break
;;

esac
done
exit 0

base.txt:

Install 1 xpsp2US_oem.zmg
Upgrade 2 xpsp2US_upg.zmg


default.txt:
sysprep.zmg
install.zmg
txtfiles.zmg
addinf.zmg


drivers.txt:
8131-17U 1 8131-17U.zmg



At first I thought it was a memory issue, but I really can't tell.

Thanks,

Mark Lime