testan a reboold
This commit is contained in:
+5
-3
@@ -13,18 +13,20 @@ echo "Sleeping 3 minutes"
|
|||||||
sleep 180
|
sleep 180
|
||||||
|
|
||||||
# rpi-update
|
# rpi-update
|
||||||
echo "Updating Raspberry Pi firmware..."
|
echo "Updating Raspberry Pi firmware... DO NOT REBOOT"
|
||||||
sudo rpi-update
|
sudo rpi-update
|
||||||
|
|
||||||
# run da raspberry pi config script
|
# run da raspberry pi config script
|
||||||
clear
|
clear
|
||||||
echo "Configure Raspberry Pi..."
|
echo "Configure Raspberry Pi... DO NOT REBOOT"
|
||||||
echo -e "Enable I2C Support in raspi-config\n\tInterface Options->I2C->\n\t Would you like the ARM I2C interface to be enabled? <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>\n"
|
echo -e "Enable I2C Support in raspi-config\n\tInterface Options->I2C->\n\t Would you like the ARM I2C interface to be enabled? <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>\n"
|
||||||
read -p "Press ENTER to Continue"
|
read -p "Press ENTER to Continue"
|
||||||
sudo raspi-config
|
sudo raspi-config
|
||||||
|
|
||||||
# notify finish
|
# update the log
|
||||||
echo "Installer1.sh complete" >> /home/$username/Precision-Timekeeping-Fuckery/status.txt
|
echo "Installer1.sh complete" >> /home/$username/Precision-Timekeeping-Fuckery/status.txt
|
||||||
|
|
||||||
|
# notify finish
|
||||||
echo "Part 1 Done!"
|
echo "Part 1 Done!"
|
||||||
|
|
||||||
# reboot after 3 minutes for safety
|
# reboot after 3 minutes for safety
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# usage
|
# usage
|
||||||
## curl -s https://raw.githubusercontent.com/PrincessPi3/Precision-Timekeeping-Fuckery/refs/heads/main/installer_auto.sh?nocache=$RANDOM | sudo $SHELL
|
## curl -s https://raw.githubusercontent.com/PrincessPi3/Precision-Timekeeping-Fuckery/refs/heads/main/installer_auto.sh?nocache=$RANDOM | $SHELL
|
||||||
# set -e
|
# set -e
|
||||||
|
|
||||||
# get real username (not root) if run with sudo
|
# get real username (not root) if run with sudo
|
||||||
|
|||||||
Reference in New Issue
Block a user