diff options
Diffstat (limited to 'create_arm_image.sh')
-rwxr-xr-x | create_arm_image.sh | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/create_arm_image.sh b/create_arm_image.sh index cf50d82..75c7f7b 100755 --- a/create_arm_image.sh +++ b/create_arm_image.sh @@ -75,7 +75,7 @@ if [ 0 -ne $(echo "${CMD_LINE}" | grep -c '\-\-log') ]; then exit fi -info ${0} +print_info ${0} #Check dependencies : #if [ -e /usr/bin/qemu-arm-static ]; then @@ -240,7 +240,7 @@ done # path of config file if ! [ -d "${CONFIG_PATH}" ]; then - info " Config path does not exists, defaulting to ./platforms/${TARGET}" + print_info " Config path does not exists, defaulting to ./platforms/${TARGET}" CONFIG_PATH="${PLATFORMS_PATH}/${TARGET}" warning "Do you want to create it and to copy the template file in? [Y|n] " read yn @@ -256,7 +256,7 @@ if ! [ -d "${CONFIG_PATH}" ]; then fi if [ -e "${CONFIG_PATH}/mageia4arm.cfg" ]; then - info "using ${CONFIG_PATH}/mageia4arm.cfg as config" + print_info "using ${CONFIG_PATH}/mageia4arm.cfg as config" source "${CONFIG_PATH}/mageia4arm.cfg" #NOTE1 : Here is sourced a file with variables. else warning "Config file does not exists, do you want to copy template ? [Y|n] " @@ -285,7 +285,7 @@ DESKTOP_NAME="${DESKTOP:="noDE"}" IMAGE_BASE="Mageia-${MAGEIA_VERSION}-${TARGET}" IMAGE="${IMAGE_BASE}-${DESKTOP_NAME}.img" -info "Option: "${OPT} +print_info "Option: "${OPT} BUILD_PATH="${INSTALL_PATH}/build-${TARGET}${TARGET_VERSION}" @@ -296,19 +296,19 @@ if [ -e "${CONFIG_PATH}/specialFunctions.sh" ]; then source "${CONFIG_PATH}/specialFunctions.sh" fi -info "target : ${TARGET}" -info "target_version : ${TARGET_VERSION}" -info "source path: ${SOURCE_PATH}" -info "Install path: ${INSTALL_PATH}" -info "Build path: ${BUILD_PATH}" -info "Commande : ${CMDNAME}" -info "Firmware path : ${FIRMWARE_PATH}" -info "Firmware dir : ${FIRMWARE_DIR}" -info "Installation method : ${INSTALL_METHOD}" +print_info "target : ${TARGET}" +print_info "target_version : ${TARGET_VERSION}" +print_info "source path: ${SOURCE_PATH}" +print_info "Install path: ${INSTALL_PATH}" +print_info "Build path: ${BUILD_PATH}" +print_info "Commande : ${CMDNAME}" +print_info "Firmware path : ${FIRMWARE_PATH}" +print_info "Firmware dir : ${FIRMWARE_DIR}" +print_info "Installation method : ${INSTALL_METHOD}" # change dir to install path and create it if not existing if [ "${OPT}" != "clean" ]; then - info "cd ${INSTALL_PATH}" + print_info "cd ${INSTALL_PATH}" if ! [ -e "${INSTALL_PATH}" ]; then /usr/bin/mkdir -p "${INSTALL_PATH}" if [ -z ${?} ]; then @@ -326,7 +326,7 @@ fi #if no parameters then display help message OPT=${OPT:="--help"} -info "Image size is: ${IMAGE_SIZE} GB" +print_info "Image size is: ${IMAGE_SIZE} GB" case ${OPT} in @@ -362,7 +362,7 @@ case ${OPT} in unloopingImage warning "You can now burn the image ( ${INSTALL_PATH}/${IMAGE} ) on SD card" - info "pv \"${INSTALL_PATH}/${IMAGE}\" | dd of=/dev/mmcblk#" + print_info "pv \"${INSTALL_PATH}/${IMAGE}\" | dd of=/dev/mmcblk#" generateExtra ;; "createchroot") |