summaryrefslogtreecommitdiff
path: root/helpers/lh_testroot
blob: e213ec5b8b5c9a9a643f31b24032490597f376fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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