This commit is contained in:
2025-06-14 02:40:38 -06:00
parent 16d054a501
commit 5aeda29043
4 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -2,15 +2,15 @@
set -e
echo "Fully upgrading, this may take a while..."
sudo apt dist-upgrade -y > /dev/null
sudo apt dist-upgrade -y 1>/dev/null
echo "Cleaning up..."
sudo apt autoremove -y > /dev/null
sudo apt autoremove -y 1>/dev/null
echo "Installer2.sh complete" >> ./status.txt
echo "Part 2 done!"
echo "Rebooting now!"
sudo reboot
# echo "Rebooting now!"
# sudo reboot
echo "Rebooting in 1 minute!"
sudo shutdown -r +1
+7 -7
View File
@@ -28,20 +28,20 @@ fi
# updoot
echo "Getting new software lists..."
sudo apt update > /dev/null
sudo apt update 1>/dev/null
# clean up
echo "Disabling unneeded junk..."
sudo systemctl disable bluetooth > /dev/null
sudo update-rc.d -f fake-hwclock remove > /dev/null
sudo systemctl disable fake-hwclock > /dev/null
sudo systemctl disable bluetooth 1>/dev/null 2>/dev/null
sudo update-rc.d -f fake-hwclock remove 1>/dev/null 2>/dev/null
sudo systemctl disable fake-hwclock 1>/dev/null 2>/dev/null
echo "Purging unneeded junk..."
sudo apt purge -y "bluetooth*" "usb*" "wireless*" "pci*" "fonts*" build-essential "bluez*" "alsa*" fake-hwclock > /dev/null
sudo apt purge -y "bluetooth*" "usb*" "wireless*" "pci*" "fonts*" build-essential "bluez*" "alsa*" fake-hwclock 1>/dev/null
# install da packages
echo "Installing packages, this may take a while..."
sudo apt install -y telegraf grafana influxdb pps-tools gpsd gpsd-clients chrony syslog-ng gh lynx btop htop iptraf iotop neovim netcat-traditional python3-smbus i2c-tools picocom > /dev/null
sudo apt install -y telegraf grafana influxdb pps-tools gpsd gpsd-clients chrony syslog-ng gh lynx btop htop iptraf iotop neovim netcat-traditional python3-smbus i2c-tools picocom 1>/dev/null
# check if pps-gpio is in /etc/modules already
grep -e "pps-gpio" /etc/modules
@@ -56,7 +56,7 @@ else
fi
echo "Cleaning up..."
sudo apt autoremove -y > /dev/null # cleanup
sudo apt autoremove -y 1>/dev/null # cleanup
if [ ! -z $SUDO_USER ]; then
username=$SUDO_USER
+2 -2
View File
@@ -10,10 +10,10 @@ else
fi
echo "Updating Software Lists"
sudo apt update > /dev/null
sudo apt update 1>/dev/null
echo "Installing git"
sudo apt install git -y
sudo apt install git -y 1>/dev/null
echo "Cloning Repo"
cd /home/$username
+1 -1
View File
@@ -7,5 +7,5 @@ if [ -z $1 ]; then
fi
echo "Running $1 on Services"
sudo systemctl $1 gpsd chrony influxdb telegraf grafana-server syslog-ng
sudo systemctl $1 gpsd chrony influxdb telegraf grafana-server syslog-ng 1>/dev/null
echo "services complete" >> ./status.txt