#!/bin/bash # set -e if [ ! -z $SUDO_USER ]; then username=$SUDO_USER else username=$USER fi # rpi-update # echo "Updating Raspberry Pi firmware..." # sudo rpi-update # run da raspberry pi config script clear echo "Configure Raspberry Pi..." echo -e "Enable I2C Support in raspi-config\n\tInterface Options->I2C->\n\t Would you like the ARM I2C interface to be enabled? \n\tkernel module loaded by default \n\nInterface Options->Serial Port\n\tWould you like a login shell to be accessible over serial? \n\tWould you like the serial port hardware to be enabled? \n" read -p "Press ENTER to Continue" sudo raspi-config echo "Installer1.sh complete" >> /home/$username/Precision-Timekeeping-Fuckery/status.txt echo "Part 1 Done!" # echo "Rebooting now!" # sudo reboot echo "Rebooting in 1 minute!" sudo shutdown -r +1