Auto run script after reboot
This commit is contained in:
parent
3ef43fcada
commit
5139589de9
|
@ -305,6 +305,8 @@ installNotImportantPackages() {
|
||||||
}
|
}
|
||||||
|
|
||||||
finishInstallation() {
|
finishInstallation() {
|
||||||
|
cp CocoASAIS /mnt/usr/bin/CocoASAIS
|
||||||
|
echo "sh /usr/bin/CocoASAIS" >> /mnt/home/slococo/.bashrc
|
||||||
rm /mnt/cocoScript
|
rm /mnt/cocoScript
|
||||||
umount -R /mnt
|
umount -R /mnt
|
||||||
whiptail --yesno "Finally, the PC needs to restart, would you like to do it?" 0 0
|
whiptail --yesno "Finally, the PC needs to restart, would you like to do it?" 0 0
|
||||||
|
@ -324,6 +326,7 @@ getDotfiles() {
|
||||||
cd CocoRice
|
cd CocoRice
|
||||||
sh scripts/bootstrap.sh -w
|
sh scripts/bootstrap.sh -w
|
||||||
cd $lastFolder
|
cd $lastFolder
|
||||||
|
rm ~/.bashrc /usr/bin/CocoASAIS
|
||||||
sudo pacman -Sy zaread-git
|
sudo pacman -Sy zaread-git
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -356,8 +359,10 @@ runScript() {
|
||||||
|
|
||||||
clear
|
clear
|
||||||
if [ -d "$HOME/Documents" ]; then
|
if [ -d "$HOME/Documents" ]; then
|
||||||
|
whiptail --title "CocoASAIS" --msgbox "Now, we will finish the installation." 0 0
|
||||||
getDotfiles
|
getDotfiles
|
||||||
whiptail --title "CocoASAIS" --msgbox "All done!" 0 0
|
whiptail --title "CocoASAIS" --msgbox "All done!" 0 0
|
||||||
|
clear
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue