Annotation of /alx-src/tags/alxconf-0_6_4_3/bin/user_shutdown.sh
Parent Directory | Revision Log
Revision 3501 -
(hide annotations)
(download)
(as text)
Tue Apr 17 12:07:30 2012 UTC (12 years, 5 months ago) by niro
File MIME type: application/x-sh
File size: 433 byte(s)
Tue Apr 17 12:07:30 2012 UTC (12 years, 5 months ago) by niro
File MIME type: application/x-sh
File size: 433 byte(s)
tagged 'alxconf-0_6_4_3'
1 | niro | 238 | #!/bin/bash |
2 | # shuts the system down and displays a nice message | ||
3 | niro | 1999 | # $Id$ |
4 | niro | 238 | |
5 | niro | 2494 | if [[ -x $(which Xdialog) ]] |
6 | niro | 238 | then |
7 | niro | 1999 | Xdialog \ |
8 | niro | 240 | --title "Shutdown" \ |
9 | niro | 238 | --no-buttons \ |
10 | niro | 309 | --infobox "System shutdown in progress ..." 6 34 5000 \ |
11 | niro | 3410 | & sudo /sbin/poweroff |
12 | niro | 2494 | elif [[ -x $(which xmessage) ]] |
13 | niro | 2436 | then |
14 | msg=" | ||
15 | System shutdown in progress ... | ||
16 | |||
17 | " | ||
18 | xmessage -center -title "Shutdown" -buttons "" "${msg}" \ | ||
19 | niro | 3410 | & sudo /sbin/poweroff |
20 | niro | 238 | else |
21 | niro | 3410 | sudo /sbin/poweroff |
22 | niro | 238 | fi |