diff --git a/sysupd b/sysupd index c14b6a3..d520f17 100755 --- a/sysupd +++ b/sysupd @@ -2,7 +2,7 @@ # Update Various System Files, Ports, etc. # Copyright (c) 2006-2013, TundraWare Inc, Des Plaines, IL USA # All Rights Reserved -# $Id: sysupd,v 1.139 2013/03/26 17:24:54 tundra Exp $ +# $Id: sysupd,v 1.140 2013/03/29 19:08:58 tundra Exp $ ##### @@ -16,12 +16,13 @@ # List Of Sets To Process By Default ##### -#ALL='debian freebsd_doc freebsd_ports freebsd_src texlive' +#ALL='debian freebsd_doc freebsd_ports freebsd_src redhat texlive' # !!! -# !!! Uncomment and edit this or the script will do nothing with CLI args +# !!! Edit this or the program will do nothing without CLI args # -#DEFAULTSETS='freebsd_doc freebsd_ports freebsd_src texlive' + +DEFAULTSETS='' # ---------------- Support Functions ---------------- # @@ -55,7 +56,7 @@ runupd() { - log=$2/$1.log + log=$2/sysupd-$1.log timestamp $log touch $2/.$1-begin && eval $3 >>$log 2>&1 && touch $2/.$1-end & } @@ -126,6 +127,15 @@ ### + # RedHat YUM Updates + ### + + redhat) + runupd $SET $LOGDIR "/usr/bin/yum -y upgrade" + ;; + + + ### # TeX Live Updates ### @@ -134,7 +144,7 @@ ;; - ##### + ##### # Catch Errors #####