#!/bin/sh
choix="Que voulez-vous faire ?"
shutdown="Arreter l'ordinateur"
reboot="Redemarrer la machine"

action=`zenity --list --title "Arreter la machine" --radiolist --column=Choix --column "$choix" TRUE "$shutdown" FALSE "$reboot" `

case "$action" in
"$shutdown")
sudo /sbin/halt
;;
"$reboot")
sudo /sbin/reboot
;;
esac
