#!/bin/bash
# Authors: Misko2083, Jerry Bezencon

bold=`tput bold`
normal=`tput sgr0`

echo "${bold}**********************"
echo "Linux Lite Updates"
echo "**********************${normal}"
echo ""
echo "Linux Lite will now search for updates for your computer."
echo "Once installed, your computer will be up to date."
echo "Simply follow the onscreen instructions."
echo ""
echo "Please enter your password to continue..."
if [ "$(pidof synaptic)" ] 
then
	sudo killall -9 synaptic 
else
	echo""
fi
if [ -z "$(pgrep gdebi-gtk)" ]
then
	echo ""
else
	killall -9 gdebi-gtk
fi
sudo apt-get update && sudo apt-get upgrade
echo ""
echo "Updates complete."
echo "This window will now close."
sleep 5
