#!/bin/bash

groovix-cancel-timeouts

echo "Groovix install will start in 30 seconds, hit Enter to skip this delay"
TMOUT=30
read delay
#mv /usr/lib/policykit-1/polkit-agent-helper-1 /usr/lib/policykit-1/polkit-agent-helper-1.groovix-installer-disabled
killall polkit-gnome-authentication-agent-1
groovix-installer 2>&1 | tee /var/log/groovix/installer.log
#mv /usr/lib/policykit-1/polkit-agent-helper-1.groovix-installer-disabled /usr/lib/policykit-1/polkit-agent-helper-1
if [ $? -eq 0 ] ; then
	echo
	echo "#######################################"
	echo "###  Installation is finished"
	echo "#######################################"
else
	echo
	echo "#######################################"
	echo "###  FATAL ERROR DURING INSTALLATION! "
	echo "#######################################"
fi

sleep 999d

true

