diff options
author | Sebastian | 2010-04-11 19:48:33 +0200 |
---|---|---|
committer | Sebastian | 2010-04-11 19:48:33 +0200 |
commit | c8f51a43fa97e5f42df9b82d1427c33b8d988bb8 (patch) | |
tree | 1a4d69f701fede992dfa3b61e3ead9d2381a3b20 /broot.sh | |
parent | added dependency based system to run defined tasks (diff) | |
download | broot-c8f51a43fa97e5f42df9b82d1427c33b8d988bb8.tar.gz broot-c8f51a43fa97e5f42df9b82d1427c33b8d988bb8.tar.xz broot-c8f51a43fa97e5f42df9b82d1427c33b8d988bb8.zip |
added function to quickly access a shell inside chroot
started with enlightenment lib package
(incomplete, commit just for transfer)
Diffstat (limited to 'broot.sh')
-rwxr-xr-x | broot.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |