aboutsummaryrefslogtreecommitdiffstats
path: root/create_arm_image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'create_arm_image.sh')
-rwxr-xr-xcreate_arm_image.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/create_arm_image.sh b/create_arm_image.sh
index 34dcfd6..b46947a 100755
--- a/create_arm_image.sh
+++ b/create_arm_image.sh
@@ -42,7 +42,7 @@ function help() {
echo -e "--add-urpmimedia add mirrors for urpmi"
echo -e "--chroot chroot to arm directory and launch packages installation"
echo -e "--create-image Create the image of Mageia ${MAGEIA_VERSION}"
- echo -e "--config Path to config files (rpi1 rpi2 rpi3 rpi3+ xu4)"
+ echo -e "--config Path to config files (rpi2 rpi3 rpi3+ xu4 bananaPro)"
echo -e "\nFor image size, make sure it fit on physical support. (Default size is 7 Go)"
}
@@ -62,7 +62,6 @@ fi
SOURCE_PATH="$(/usr/bin/dirname "$(readlink -f "${0}")")"
INSTALL_PATH="$(pwd)/build"
-# FILES_PATH="${SOURCE_PATH}/files"
PLATFORMS_PATH="${SOURCE_PATH}/platforms"
INSTALL_METHOD="urpmi"
@@ -81,7 +80,6 @@ if [ ${?} -ne 0 ] ; then error "line ${LINENO} Failed parsing options." >&2 ; ex
eval set -- "${TEMP}"
echo "${TEMP}"
-# Note the quotes around `$TEMP': they are essential! Or not, $( ) do the same as ` `. But there are the ` ' used ?
while true; do
case "${1}" in
--add-urpmimedia)
@@ -270,9 +268,7 @@ if [ "${OPT}" != "clean" ]; then
fi
#if no parameters then display help message
-if [ -z ${OPT} ]; then
- OPT="--help"
-fi
+OPT=${OPT:="--help"}
info "Image size is: ${IMAGE_SIZE} GB"