#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
	exit
fi

[ $(systemctl list-unit-files xinit.service | wc -l) -gt 3 ] && systemctl restart xinit
