/usr/local/bin/auto_update.sh :
`!/bin/bash
Check if user presses a key within 5 seconds
echo "Press any key within 5 seconds to stop system update..."
read -t 5 -n 1 keyif [[ $? -eq 0 ]]; then
echo "Update script skipped by user."
exit 0
fiecho "Running update script..."
rate-mirrors --allow-root --per-mirror-timeout 500 arch | sudo tee /etc/pacman.d/mirrorlist
sudo pacman -Syu`
I want this to be run at boot. And I want to see the output before the GUI loads.