Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #Affichage de la vue
- tmp=/tmp/choix$$
- dialog --backtitle "Date et Heure" \
- --title "Config-O-Matic" \
- --msgbox "Nicolas GERON\nPierre SIGWALT\nGroupe B\n\n Press <Enter> to continue..." 10 45 \
- secu1=1
- while [ $secu1=1 ]
- do
- dialog --menu "menu" 20 20 20 1 Machine 2 Reseau 3 Systeme 4 Menu 5 Quitter 2>$tmp \
- choix=$(cat $tmp);
- if [ $choix=1 ]; then
- echo $choix
- dialog --msgbox "Catégorie Machine. " 10 45
- --clear
- elif [ $choix=2 ]; then
- dialog --msgbox "Catégorie Reseau. " 10 45
- --clear
- elif [ $choix=3 ]; then
- dialog --msgbox "Catégorie Systeme. " 10 45
- --clear
- elif [ $choix=4 ]; then
- dialog --msgbox "Revenir au menu principal " 10 45
- --clear
- secu1=0
- break
- elif [ $choix=5 ]; then
- dialog --msgbox "Quitter le programme" 10 45
- --clear
- else
- echo "not a choix"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement