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 /tasks/shell.task.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 'tasks/shell.task.sh')
-rw-r--r-- | tasks/shell.task.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tasks/shell.task.sh b/tasks/shell.task.sh new file mode 100644 index 0000000..cf38adc --- /dev/null +++ b/tasks/shell.task.sh @@ -0,0 +1,8 @@ +shell() { + if [ ! -e $BROOT_BUILDROOT_PATH/bootstraped ]; then + echo " Can't find buildroot." + exit 13 + fi + echo " Switching to chroot" + chroot-exec /bin/bash +} |