File: gl-shutdown-menu

package info (click to toggle)
clonezilla 5.9.9-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,516 kB
  • sloc: sh: 40,222; perl: 193; python: 59; makefile: 26
file content (15 lines) | stat: -rwxr-xr-x 280 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

choice="$(zenity --list --title "Select item from the list" --text "Exit" --radiolist  --column "Pick" --column "Action" TRUE Reboot FALSE Shutdown FALSE Logout)";

case $choice in
	"Reboot")
		reboot
		;;
	"Shutdown")
		halt -p
		;;	
	"Logout")
		gl-killx
		;;
esac