Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while [ true ]; do
- salida=$(acpitool |grep off-line)
- if [ -n "$salida" ] && $bandera ;
- then
- bandera=false
- #echo "está off line"
- zenity --info --text="La batería está off line"
- elif [ ! -n "$salida" ];
- then
- bandera=true
- #echo "está on line"
- fi
- sleep 30s
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement