summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-11-04 13:00:12 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-11-04 13:00:12 +0100
commit35919637afca7890c183930418f1d0580361f5dc (patch)
treebaac5f7a720df369bf8ceefa97e8bd414b135c2d /frontend
parent600e715703bab2a0ae100d75c5e33dfeba0f6e74 (diff)
downloadvyos-live-build-35919637afca7890c183930418f1d0580361f5dc.tar.gz
vyos-live-build-35919637afca7890c183930418f1d0580361f5dc.zip
Moving testroot into lb wrapper itself.
Diffstat (limited to 'frontend')
-rwxr-xr-xfrontend/cli/lb7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontend/cli/lb b/frontend/cli/lb
index a57577f94..a476640eb 100755
--- a/frontend/cli/lb
+++ b/frontend/cli/lb
@@ -18,6 +18,13 @@ DESCRIPTION="$(Echo 'utility to build live systems')"
HELP="FIXME"
USAGE="FIXME"
+# Checking user account
+if [ "$(id -u)" -ne "0" ]
+then
+ Echo_error "need root privileges"
+ exit 1
+fi
+
case "${1}" in
-h|--help)
if [ -x "$(which man 2>/dev/null)" ]