diff --git a/installer2.sh b/installer2.sh index d6babc4..c0a52c2 100644 --- a/installer2.sh +++ b/installer2.sh @@ -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 \ No newline at end of file diff --git a/installer3.sh b/installer3.sh index f84f731..2864df9 100644 --- a/installer3.sh +++ b/installer3.sh @@ -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 diff --git a/installer_auto.sh b/installer_auto.sh index 19f1742..414454e 100644 --- a/installer_auto.sh +++ b/installer_auto.sh @@ -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 diff --git a/services.sh b/services.sh index f262643..55d9ac7 100644 --- a/services.sh +++ b/services.sh @@ -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