aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2020-08-30 15:27:23 +0200
committerJybz <j.biernacki@free.fr>2020-08-30 15:27:23 +0200
commitdd5ecf6785d417c0d01b3426252e5af1d69e48f1 (patch)
tree703edd25874e7adbd63811938b0a69d844e7705b
parent522cff4aaaf7beb0c0fb6ae3e183750ab0a408b5 (diff)
downloadmageia4arm-dd5ecf6785d417c0d01b3426252e5af1d69e48f1.tar
mageia4arm-dd5ecf6785d417c0d01b3426252e5af1d69e48f1.tar.gz
mageia4arm-dd5ecf6785d417c0d01b3426252e5af1d69e48f1.tar.bz2
mageia4arm-dd5ecf6785d417c0d01b3426252e5af1d69e48f1.tar.xz
mageia4arm-dd5ecf6785d417c0d01b3426252e5af1d69e48f1.zip
update help, remove useless comment
-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"