#!/bin/sh # lh_testroot(1) - ensure that a system is built as root set -e # Checking user account if [ "`id -u`" -ne "0" ] then echo "E: need root privileges" exit 1 fi