diff --git a/src/freedombone-utils-config b/src/freedombone-utils-config index 00ace33e..6cc9eeff 100755 --- a/src/freedombone-utils-config +++ b/src/freedombone-utils-config @@ -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" } diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 3a56ee0a..ba39fd55 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -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