about summary refs log tree commit diff stats
path: root/core/scripts/getiso.sh
blob: 18f1ad189459a3b0715a2b897bf5c3d44fc3f5c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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