if [ ! -d /archives/config ]; then
mkdirhier /archives/config
fi
cat << EOF > /tmp/choiscript
dialog --title "CHARGER une CONFIGURATION" --menu "
Vous devez selectionner une configuration. 
Pour cela utilisez les touches du curseur.
" 20 68 9 \\
EOF

VAR1=`ls /archives/config/ | wc -l | tail -c2`

if [ $VAR1 = '0' ]; then
exit
fi

for VAR in /archives/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/
  cp -r /archives/config/$NOM/* /
  echo $NOM > /root/config/config_actu

