From 5139589de9f8d5dd047bd9be9cccb3dbc3f08d2c Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Fri, 31 Dec 2021 12:25:48 -0300 Subject: [PATCH] Auto run script after reboot --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index b87b3e0..7b8ff0d 100755 --- a/install.sh +++ b/install.sh @@ -305,6 +305,8 @@ installNotImportantPackages() { } finishInstallation() { + cp CocoASAIS /mnt/usr/bin/CocoASAIS + echo "sh /usr/bin/CocoASAIS" >> /mnt/home/slococo/.bashrc rm /mnt/cocoScript umount -R /mnt whiptail --yesno "Finally, the PC needs to restart, would you like to do it?" 0 0 @@ -324,6 +326,7 @@ getDotfiles() { cd CocoRice sh scripts/bootstrap.sh -w cd $lastFolder + rm ~/.bashrc /usr/bin/CocoASAIS sudo pacman -Sy zaread-git } @@ -356,8 +359,10 @@ runScript() { clear if [ -d "$HOME/Documents" ]; then + whiptail --title "CocoASAIS" --msgbox "Now, we will finish the installation." 0 0 getDotfiles whiptail --title "CocoASAIS" --msgbox "All done!" 0 0 + clear exit 0 fi