v2.0.2 quickinfo - removed old unused code and added comments

This commit is contained in:
pyr0ball 2023-03-09 12:01:53 -08:00
parent 74c83516c8
commit 778c98f276

View file

@ -9,7 +9,7 @@
# Written by Alan "pyr0ball" Weinstock # # Written by Alan "pyr0ball" Weinstock #
############################################################### ###############################################################
quickinfo_version=2.0.1 quickinfo_version=2.0.2
prbl_functons_req_ver=1.1.3 prbl_functons_req_ver=1.1.3
# Uses a wide variety of methods to check which distro this is run on # Uses a wide variety of methods to check which distro this is run on
@ -114,8 +114,7 @@ while getopts ":cdh" opt
location=$(uname -a | awk '{print $2}') location=$(uname -a | awk '{print $2}')
image_version=$(uname -r) image_version=$(uname -r)
software_version=$(echo $OS $VER) software_version=$(echo $OS $VER)
# Checks if variables are empty (due to webapp being down on last # Checks if variables are empty and fills the variables
# cache run or other possible reasons) and fills the variables
# with generic warning # with generic warning
empty_var="MISSING" empty_var="MISSING"
@ -125,16 +124,6 @@ if [ -z "$location" ]
location=$empty_var location=$empty_var
any_missing=true any_missing=true
fi fi
if [ -z "$router_version" ]
then
router_version=$empty_var
any_missing=true
fi
if [ -z "$cxps_serial" ]
then
cxps_serial=$empty_var
any_missing=true
fi
if [ "$any_missing" == "true" ] if [ "$any_missing" == "true" ]
then then
vars_missing=$(echo "Something went wrong gathering information") vars_missing=$(echo "Something went wrong gathering information")
@ -318,4 +307,3 @@ if [ -z "${fsck_needed}" ] || [ -z "${reboot_required}" ] ; then
boxline " ${fsck_needed}${reboot_required}" boxline " ${fsck_needed}${reboot_required}"
fi fi
boxbottom boxbottom