summaryrefslogtreecommitdiff
path: root/helpers/lh_testroot
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:51 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:51 +0200
commit3de3c9914784e384c5747323bc18988601e137e6 (patch)
tree621dc56a00a65ab0eb1fd4e7d42ad4e45d718741 /helpers/lh_testroot
parent2230835b694fef8f6f63992b373d06e6025917ce (diff)
downloadvyos-live-build-3de3c9914784e384c5747323bc18988601e137e6.tar.gz
vyos-live-build-3de3c9914784e384c5747323bc18988601e137e6.zip
Adding live-helper 1.0~a7-1.
Diffstat (limited to 'helpers/lh_testroot')
-rwxr-xr-xhelpers/lh_testroot6
1 files changed, 5 insertions, 1 deletions
diff --git a/helpers/lh_testroot b/helpers/lh_testroot
index e6945292c..bb5592e79 100755
--- a/helpers/lh_testroot
+++ b/helpers/lh_testroot
@@ -22,10 +22,14 @@ USAGE="${PROGRAM} [--force]"
Arguments "${@}"
+# Reading configuration files
+Read_conffile config/common
+Set_defaults
+
Echo_debug "Init ${PROGRAM}"
# Checking user account
-if [ "`id -u`" -ne "0" ]
+if [ "`${LH_ROOT_COMMAND} id -u`" -ne "0" ]
then
Echo_error "need root privileges"
exit 1