Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Administrador de poder
- accion=$( zenity --list --title "Administrador de poder" --column "Accion" "Apagar" "Reiniciar" "Suspender" "Hibernar" "Bloquear pantalla")
- if ["$accion"="Apagar"]
- then
- xterm -esudo shutdown -hnow
- elif["$accion"="Reiniciar"]
- then
- xterm -esudo reboot
- elif["$accion"="Suspender"]
- echo Hola
- #comando para suspender equipo
- then
- elif["$accion"="Hibernar"]
- then
- echo Hola
- #comando para hibernar equipo
- elif["$accion"="Bloquear pantalla"]
- then
- echo Hola
- #comando para bloquear pantalla
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement