diff options
author | Thomas Van Iseghem <[email protected]> | 2023-03-09 19:14:18 +0100 |
---|---|---|
committer | Thomas Van Iseghem <[email protected]> | 2023-03-09 19:14:18 +0100 |
commit | 4ff0548eaa990926864ea61f7990e9586a8ba09f (patch) | |
tree | 27bce957404d21deea4de369c1ce03e82769d435 /QC-dev-environment/init_system.sh | |
parent | d3ab9d161e5f30247a6e59359ba1d93c41116305 (diff) | |
download | OpenCortex-4ff0548eaa990926864ea61f7990e9586a8ba09f.tar.gz OpenCortex-4ff0548eaa990926864ea61f7990e9586a8ba09f.zip |
Added a update package builder
Diffstat (limited to 'QC-dev-environment/init_system.sh')
-rw-r--r-- | QC-dev-environment/init_system.sh | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/QC-dev-environment/init_system.sh b/QC-dev-environment/init_system.sh index d870aff..8b931f9 100644 --- a/QC-dev-environment/init_system.sh +++ b/QC-dev-environment/init_system.sh @@ -11,15 +11,28 @@ echo "Mounting rootfs.ext3" mount -t ext4 /qc-fs-uncompressed/rootfs.ext3 $QEMU_LD_PREFIX echo "Mounting rootfs.ext3 finished" -echo "Installing QT" -cd /qt_src && ./install_qt_compiled.sh -echo "Installing QT finished" +# Promt the user to install custom QT +# if the user types "y" or "Y" then install custom QT +echo "Do you want to install the custom compiled QT? (y/n)" +echo "" +read -n 1 -r +echo "" + +if [[ $REPLY =~ ^[Yy]$ ]] +then + echo "Installing QT" + cd /qt_src && ./install_qt_compiled.sh + echo "Installing QT finished" +fi # 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)" +echo "" read -n 1 -r +echo "" + if [[ $REPLY =~ ^[Yy]$ ]] then echo "" |