Sorry I have taken so long to respond.
Okay so to start I am editing the fog.man.reg file. I have do this with help from George.
I have taken away the option to select which image to deploy this was done because, non technical people are using the system and I will decide which image to install for them. I have modified my fog.man.reg file to go straight into the deployment with out rebooting by call on the fog.download. This works fine but what I am looking for is a way of not proceeding to the fog.download file until I have remotely assign an image to be deployed.
So regarding the while loop
I have tried the following commands in the fog.man.reg file:
while [[ -z “$OSID”]]; do
echo “Please wait”
sleep 60
done
(this failed as the syntax is incorrect)
while $OSID==“0” ; do
I have also looked through the fog.checkin file and found a command that i put into the fog.checkin file
while [[-z $osid]]; do
echo “Please Wait”
[[ -z $deployed ]] && determineOS “$osid”
sleep 60
done
Does this help ?