diff options
Diffstat (limited to 'functions.sh')
-rwxr-xr-x | functions.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/functions.sh b/functions.sh index 76fd278..7df8d67 100755 --- a/functions.sh +++ b/functions.sh @@ -63,13 +63,20 @@ function check_environment() { if [ 0 -ne ${?} ]; then error "urpmi is missing." fi - elif [ "x${INSTALL_METHOD}" == "xurpmi" ]; then + elif [ "x${INSTALL_METHOD}" == "xdnf" ]; then hash /usr/bin/dnf if [ 0 -ne ${?} ]; then error "dnf is missing." fi fi + list_of_tools="/usr/bin/qemu-arm-static /usr/bin/qemu-img" ### TODO add other environmnet things, like : from function createchroot() + for tool in ${list_of_tools} ; do + hash ${tool} + if [ 0 -ne ${?} ]; then + error "${tool} is missing." + fi + done } function verify_disk_space() { @@ -99,7 +106,7 @@ function createchroot() { fi fi - if [ `arch` != "${ARM_VERSION}" ]; then + if [ $(arch) != "${ARM_VERSION}" ]; then if ! [ -f /usr/bin/qemu-arm-static ]; then title "Qemu package not present : installing qemu packages" #/usr/bin/dnf --assumeyes --setopt=install_weak_deps=False install qemu-user-static @@ -921,6 +928,11 @@ function copyingCustomSystem() { return 1 } +function imageConversion() { + # reimplement this function in your platforms/yourplatform/specialFunctions.sh file. + return 0 +} + ERRORN=0 |