aboutsummaryrefslogtreecommitdiffhomepage
path: root/QC-dev-environment/init_system.sh
diff options
context:
space:
mode:
authorThomas Van Iseghem <[email protected]>2023-02-01 17:35:58 +0100
committerThomas Van Iseghem <[email protected]>2023-02-01 17:35:58 +0100
commit6aceac7a93a42152789abdc4532d0209d5d7304d (patch)
treed3d659b153d9bcf9ac4fee58b8ab3e8052e3425f /QC-dev-environment/init_system.sh
parent7dc2868aea601a7aa5c2f096c63af51e8b4ec0af (diff)
downloadOpenCortex-6aceac7a93a42152789abdc4532d0209d5d7304d.tar.gz
OpenCortex-6aceac7a93a42152789abdc4532d0209d5d7304d.zip
Added docker development environment
Diffstat (limited to 'QC-dev-environment/init_system.sh')
-rw-r--r--QC-dev-environment/init_system.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/QC-dev-environment/init_system.sh b/QC-dev-environment/init_system.sh
new file mode 100644
index 0000000..c6aa3d5
--- /dev/null
+++ b/QC-dev-environment/init_system.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+echo "Mounting rootfs.ext3"
+mount -t ext4 /qc-fs/rootfs.ext3 $QEMU_LD_PREFIX
+echo "Mounting rootfs.ext3 finished"
+
+echo "Installing QT"
+cd /qt_src && ./install_qt_compiled.sh
+echo "Installing QT finished"
+
+# Prompt user to chroot into the $QEMU_LD_PREFIX directory
+# if the user types "y" or "Y" then chroot into the $QEMU_LD_PREFIX directory
+# otherwise exit the script
+echo "Do you want to chroot into the created QC-filesystem? (y/n)"
+read -n 1 -r
+if [[ $REPLY =~ ^[Yy]$ ]]
+then
+ echo "Chrooting into $QEMU_LD_PREFIX"
+ chroot $QEMU_LD_PREFIX
+fi