#!/bin/bash ISO_URL="https://serverop.de/crux/crux-3.2/iso/crux-3.2.iso" ISO_FILE="crux-3.2.iso" printf "1.1.1 Path/to crux-3.2.iso (/home/user/Downloads):" read ISO_PATH #prepare_iso() { ISO_FILE=$ISO_PATH/$ISO_FILE if [ -f $ISO_FILE ]; then echo "File $ISO_FILE exists." else echo "File $ISO_FILE does not exist." cd $ISO_PATH && { curl -k -O $ISO_URL ; cd -; } fi #} modprobe isofs modprobe loop mount -o loop $ISO_FILE $CHROOT/media