about summary refs log tree commit diff stats
path: root/core/scripts/getiso.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/scripts/getiso.sh')
-rw-r--r--core/scripts/getiso.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/core/scripts/getiso.sh b/core/scripts/getiso.sh
new file mode 100644
index 0000000..18f1ad1
--- /dev/null
+++ b/core/scripts/getiso.sh
@@ -0,0 +1,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