summaryrefslogtreecommitdiffstats
path: root/broot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'broot.sh')
-rwxr-xr-xbroot.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/broot.sh b/broot.sh
index e3d2c74..dd4d06f 100755
--- a/broot.sh
+++ b/broot.sh
@@ -3,6 +3,10 @@
. ./inc/env.inc.sh # read slx config to find paths
. ./inc/functions.inc.sh
+if [ "$(whoami)" != "root" ]; then
+ echo " You need to be root"
+ exit 12
+fi
case $1 in
"setup")
@@ -15,6 +19,9 @@ case $1 in
tasks="build_busybox"
# chroot-exec /root/bin/build-bb.sh
;;
+ "shell")
+ tasks="shell"
+ ;;
"build-initramfs-pkgs")
tasks="build_busybox build_packages build_kernel"
# updateScripts