1
2
3
4
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script"
exit 1
fi