Update linupx-scripts.sh
This commit is contained in:
@@ -813,11 +813,11 @@ SCRIPT_MENU() {
|
|||||||
clear
|
clear
|
||||||
echo
|
echo
|
||||||
echo -e " ${idsCL[LightGreen]}LinUPx - L I N U X U P D A T E S C R I P T S${idsCL[Default]} ${idsCL[White]}(ver-${VERS})${idsCL[Default]}"
|
echo -e " ${idsCL[LightGreen]}LinUPx - L I N U X U P D A T E S C R I P T S${idsCL[Default]} ${idsCL[White]}(ver-${VERS})${idsCL[Default]}"
|
||||||
echo -e "${idsCL[LightGreen]}---------------------------------------------------------------------------${idsCL[White]}"
|
echo -e "${idsCL[LightGreen]}---------------------------------------------------------------------------${idsCL[Default]}"
|
||||||
echo -e "Hostname: ${idsCL[Cyan]}$(hostname -s)${idsCL[Default]}"
|
echo -e "Hostname: ${idsCL[Cyan]}$(hostname -s)${idsCL[Default]}"
|
||||||
echo -e "Domain: ${idsCL[Cyan]}$(hostname -d)${idsCL[Default]}"
|
echo -e "Domain: ${idsCL[Cyan]}$(hostname -d)${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
echo -e "Updates last run on: ${idsCL[Green]}${LASTRUND} ${LASTRUNT}${idsCL[White]}"
|
echo -e "Updates last run on: ${idsCL[Green]}${LASTRUND} ${LASTRUNT}${idsCL[Default]}"
|
||||||
echo "---------------------------------------------------------------------------"
|
echo "---------------------------------------------------------------------------"
|
||||||
OS=($(detect_os))
|
OS=($(detect_os))
|
||||||
width=14
|
width=14
|
||||||
@@ -826,32 +826,32 @@ SCRIPT_MENU() {
|
|||||||
printf "%-${width}s: %s\n" "Derivative" "${OS[2]}"
|
printf "%-${width}s: %s\n" "Derivative" "${OS[2]}"
|
||||||
printf "%-${width}s: %s\n" "Version" "${OS[3]}"
|
printf "%-${width}s: %s\n" "Version" "${OS[3]}"
|
||||||
printf "%-${width}s: %s\n" "Codename/Rev" "${OS[4]}"
|
printf "%-${width}s: %s\n" "Codename/Rev" "${OS[4]}"
|
||||||
echo -e "${idsCL[LightGreen]}---------------------------------------------------------------------------${idsCL[White]}"
|
echo -e "${idsCL[LightGreen]}---------------------------------------------------------------------------${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
echo " [1] Check for Updates/Upgrades"
|
echo " [${idsCL[Yellow]}1${idsCL[Default]}] Check for Updates/Upgrades"
|
||||||
echo "*[2] Run Updates"
|
echo "*[${idsCL[Yellow]}2${idsCL[Default]}] Run Updates"
|
||||||
if [ "$ATYPE" != 'yum' ]; then
|
if [ "$ATYPE" != 'yum' ]; then
|
||||||
echo " [3] Run Updates w/o updating repos"
|
echo " [${idsCL[Yellow]}3${idsCL[Default]}] Run Updates w/o updating repos"
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo " [4] Check for Upgrades with obsoletes enabled"
|
echo " [${idsCL[Yellow]}4${idsCL[Default]}] Check for Upgrades with obsoletes enabled"
|
||||||
echo " [5] Run Dist-Upgrade"
|
echo " [${idsCL[Yellow]}5${idsCL[Default]}] Run Dist-Upgrade"
|
||||||
echo "*[6] Run Python-Pip Upgrades"
|
echo "*[${idsCL[Yellow]}6${idsCL[Default]}] Run Python-Pip Upgrades"
|
||||||
echo
|
echo
|
||||||
echo " [9] Update/Fix Missing APT Repo Keys"
|
echo " [${idsCL[Yellow]}9${idsCL[Default]}] Update/Fix Missing APT Repo Keys"
|
||||||
if [ "$ATYPE" != 'yum' ]; then
|
if [ "$ATYPE" != 'yum' ]; then
|
||||||
echo " [0] Enable/Disable Automatic Security Updates"
|
echo " [${idsCL[Yellow]}0${idsCL[Default]}] Enable/Disable Automatic Security Updates"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
echo " [I] Installation Scripts"
|
echo " [${idsCL[Yellow]}I${idsCL[Default]}] Installation Scripts"
|
||||||
echo " [M] Misc/Other Scripts"
|
echo " [${idsCL[Yellow]}M${idsCL[Default]}] Misc/Other Scripts"
|
||||||
echo
|
echo
|
||||||
# echo " [L] Enable Remote Syslog"
|
# echo " [${idsCL[Yellow]}L${idsCL[Default]}] Enable Remote Syslog"
|
||||||
# echo " [Config file: RemoteSyslogServer=${RemoteSyslogServer}]"
|
# echo " [Config file: RemoteSyslogServer=${RemoteSyslogServer}]"
|
||||||
# echo
|
# echo
|
||||||
echo " [R] Reboot System"
|
echo " [${idsCL[Yellow]}R${idsCL[Default]}] Reboot System"
|
||||||
echo " [S] Shutdown System"
|
echo " [${idsCL[Yellow]}S${idsCL[Default]}] Shutdown System"
|
||||||
echo " [Q] Quit"
|
echo " [${idsCL[Yellow]}Q${idsCL[Default]}] Quit"
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
echo -e -n "${idsCL[Yellow]}Please select an [ActionItem] from above:${idsCL[Default]} "
|
echo -e -n "${idsCL[Yellow]}Please select an [ActionItem] from above:${idsCL[Default]} "
|
||||||
|
|||||||
Reference in New Issue
Block a user