
dialog --msgbox "          Please insert your BACKUP disk \n
 			in the drive A " 10 70

cat << EOF > /tmp/choiscript
dialog --title "LOAD a BACKUP" --menu "
You have to choose a configuration. 
You can do that with the cursor.
" 20 68 9 \\
EOF
rm -rf /tmp/disk_config
mkdir /tmp/disk_config
mcopy a:* /tmp/disk_config

for VAR in /tmp/disk_config/* ; do
  VAR2=`basename $VAR `
  echo "\"$VAR2\" \"\" \\" >> /tmp/choiscript
done
echo "2> /tmp/choixligne" >> /tmp/choiscript

  . /tmp/choiscript
  if [ ! $? = 0 ]; then rm -f /tmp/choixligne /tmp/choiscript; exit 1; fi
  NOM="`cat /tmp/choixligne`"
  rm -f /tmp/choixligne/

  dialog --yesno "     YOU MAY ERASE YOUR OLD CONFIG !!! \n
           Do you want to continue ? " 8 60

	if [ $? != 1 ]; then
           cd /
	   tar -xzvf /tmp/disk_config/$NOM
        fi

rm -rf /tmp/disk_config
	


  
