8 |
--title "Shutdown" \ |
--title "Shutdown" \ |
9 |
--no-buttons \ |
--no-buttons \ |
10 |
--infobox "System shutdown in progress ..." 6 34 5000 \ |
--infobox "System shutdown in progress ..." 6 34 5000 \ |
11 |
& sudo /sbin/halt |
& sudo /sbin/poweroff |
12 |
elif [[ -x $(which xmessage) ]] |
elif [[ -x $(which xmessage) ]] |
13 |
then |
then |
14 |
msg=" |
msg=" |
16 |
|
|
17 |
" |
" |
18 |
xmessage -center -title "Shutdown" -buttons "" "${msg}" \ |
xmessage -center -title "Shutdown" -buttons "" "${msg}" \ |
19 |
& sudo /sbin/halt |
& sudo /sbin/poweroff |
20 |
else |
else |
21 |
sudo /sbin/halt |
sudo /sbin/poweroff |
22 |
fi |
fi |