Checking of system type

This commit is contained in:
Bob Mottram 2016-10-09 11:07:05 +01:00
parent d5bedb0e55
commit a15ec75aff
2 changed files with 10 additions and 0 deletions

View File

@ -171,6 +171,13 @@ function read_configuration {
CHECK_MESSAGE=$"Check your internet connection, /etc/network/interfaces and /etc/resolv.conf, then delete $COMPLETION_FILE, run 'rm -fR /var/lib/apt/lists/* && apt-get update --fix-missing' and run this script again. If hash sum mismatches persist then try setting $DEBIAN_REPO to a different mirror and also change /etc/apt/sources.list."
fi
fi
}
function check_system_type {
if [ ${#SYSTEM_TYPE} -eq 0 ]; then
echo $'Unknown system type'
exit 763572
fi
echo "System type: $SYSTEM_TYPE"
}

View File

@ -263,6 +263,9 @@ function setup_utils {
function_check read_configuration
read_configuration
function_check check_system_type
check_system_type
function_check upgrade_installation
upgrade_installation