diff options
Diffstat (limited to 'QC-dev-environment/init_system.sh')
-rw-r--r-- | QC-dev-environment/init_system.sh | 19 |
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 |