25 lines
754 B
Bash
25 lines
754 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# updoot
|
|
echo "Updating software lists..."
|
|
sudo apt update 1>/dev/null 2>/dev/null
|
|
|
|
# updoot this
|
|
echo "Updating this repo..."
|
|
git pull 1>/dev/null 2>/dev/null
|
|
|
|
# rpi-update
|
|
echo "Updating Raspberry Pi firmware..."
|
|
sudo rpi-update
|
|
|
|
# run da raspberry pi config script
|
|
echo "Configure Raspberry Pi..."
|
|
echo -e "Enable I2C Support in raspi-config\n\tInterface Options->I2C->\n\tenable <Yes>\n\tkernel module loaded by default <Yes>\n\nInterface Options->Serial Port\n\tWould you like a login shell to be accessible over │
|
|
│ serial? <No>\n\tWould you like the serial port hardware to be enabled? <Yes>"
|
|
sudo raspi-config
|
|
|
|
echo "Part 1 done!"
|
|
echo "Rebooting now!"
|
|
sudo reboot
|
|
# sudo shutdown -r +5 |