theroot

updateworld.conf

Feb 8th, 2013
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.50 KB | None | 0 0
  1. # temporary file to determine cmd status
  2. tmpfile='/tmp/updateworld.txt'
  3.  
  4. # log file
  5. logfile='/var/log/portage/updateworld.log'
  6.  
  7. # tmp exit status file
  8. esfile='/tmp/updateworld.es'
  9.  
  10. # timestamp format for logs
  11. stamp=`date +%m%d%y`
  12.  
  13. # automatically do a world sync
  14. f_sync='yes'
  15. sync_cmd='emerge --sync'
  16.  
  17. # automatically do a world update
  18. f_emerge='yes'
  19. em_cmd='emerge -vuDN world'
  20. #em_cmd='tm -vuDN world'
  21.  
  22. # automatically do a revdep-rebuild
  23. f_revdep='yes'
  24. revdep_cmd='revdep-rebuild -i'
  25.  
  26. # automatically do an etc config file check. If running autonomously - see `man etc-update` for the automode flag.
  27. f_etc='yes'
  28. etc_cmd='etc-update -q'
  29.  
  30. # produce a lockfile with pid to prevent parrallel procs and watch for completion
  31. f_lock='yes'
  32. lockfile='/tmp/updateworld.lock'
  33.  
  34. # execute this command when watching verbose log file output
  35. # note: the -number you'll want to set this roughly to how many lines your
  36. # terminal can display, that way you can see the verbose output in it's entirety
  37. watch_cmd="watch -t -n0.1 tail -82 ${logfile}"
  38.  
  39. # execute this command string before any update functions
  40. pre_cmd=''
  41.  
  42. # execute this command string after a succesfull update
  43. post_cmd=''
  44.  
  45. # execute this command string after a failed update
  46. fail_cmd=''
  47.  
  48. # dont change me unless you like things to not work
  49. exitstatus='0'
  50.  
  51. # output verbose by default
  52. f_verbose='no'
  53.  
  54. # appends the keep-going command onto the emerge command, to have it continue a multi package emerge even if one fails
  55. f_kg='no'
Advertisement
Add Comment
Please, Sign In to add comment