Skip to content
Snippets Groups Projects
Commit a15ec75a authored by Bob Mottram's avatar Bob Mottram
Browse files

Checking of system type

parent d5bedb0e
No related branches found
No related tags found
No related merge requests found
......@@ -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"
}
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment