if [ ! -d /archives/config ]; then
  dialog --title "Directory /archives/config not found" --msgbox " 
Then you can't display the \
configurations." 9 60 
  exit
fi

cat << EOF > /tmp/affichage
EOF

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

if [ $VAR1 != '0' ]; then
for VAR in /archives/config/* ; do
  VAR2=`basename $VAR `
  echo "$VAR2" >> /tmp/affichage
done
fi

dialog --title "DISPLAY CONFIGURATIONS" --textbox /tmp/affichage 22 70 
rm -f /tmp/affichage
