Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. case $1 in
  4. config)
  5. cat <<'EOM'
  6. graph_args --base 1000 -l 0
  7. graph_category pacman
  8. graph_title Pending updates
  9. graph_vlabel updates
  10. updates.label updates
  11. updates.info Current number of pending updates
  12. updates.warning 1
  13. EOM
  14. exit 0;;
  15.  
  16. esac
  17.  
  18. echo updates.value $(checkupdates | wc -l)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement