
dialog --msgbox "          Veuillez inserer une disquette au format DOS \n
 			dans le lecteur A " 10 70

cat << EOF > /tmp/choiscript
dialog --title "CHARGEMENT d'un BACKUP" --menu "
Vous devez selectionner une configuration. 
Pour cela utilisez les touches du curseur.
" 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 "     VOUS RISQUEZ D'ECRASER VOS ANCIENNES CONFIG !!! \n
           Voulez-vous continuer ? " 8 60

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

rm -rf /tmp/disk_config
	


  
