Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # temporary file to determine cmd status
- tmpfile='/tmp/updateworld.txt'
- # log file
- logfile='/var/log/portage/updateworld.log'
- # tmp exit status file
- esfile='/tmp/updateworld.es'
- # timestamp format for logs
- stamp=`date +%m%d%y`
- # automatically do a world sync
- f_sync='yes'
- sync_cmd='emerge --sync'
- # automatically do a world update
- f_emerge='yes'
- em_cmd='emerge -vuDN world'
- #em_cmd='tm -vuDN world'
- # automatically do a revdep-rebuild
- f_revdep='yes'
- revdep_cmd='revdep-rebuild -i'
- # automatically do an etc config file check. If running autonomously - see `man etc-update` for the automode flag.
- f_etc='yes'
- etc_cmd='etc-update -q'
- # produce a lockfile with pid to prevent parrallel procs and watch for completion
- f_lock='yes'
- lockfile='/tmp/updateworld.lock'
- # execute this command when watching verbose log file output
- # note: the -number you'll want to set this roughly to how many lines your
- # terminal can display, that way you can see the verbose output in it's entirety
- watch_cmd="watch -t -n0.1 tail -82 ${logfile}"
- # execute this command string before any update functions
- pre_cmd=''
- # execute this command string after a succesfull update
- post_cmd=''
- # execute this command string after a failed update
- fail_cmd=''
- # dont change me unless you like things to not work
- exitstatus='0'
- # output verbose by default
- f_verbose='no'
- # appends the keep-going command onto the emerge command, to have it continue a multi package emerge even if one fails
- f_kg='no'
Advertisement
Add Comment
Please, Sign In to add comment