diff --git a/unbox.sh b/unbox.sh index 592aa8d..b30df79 100755 --- a/unbox.sh +++ b/unbox.sh @@ -32,11 +32,11 @@ function unbox_outer_stage(){ fi if type -t chroot > /dev/null; then - #if type -t arch-chroot > /dev/null; then - # CHROOT=arch-chroot - #else + if type -t arch-chroot > /dev/null; then + CHROOT=arch-chroot + else CHROOT=chroot - #fi + fi else echo ERROR: no chroot found 1>&2 exit 1 @@ -65,27 +65,6 @@ function unbox_inner_stage(){ } cd $(dirname $0) - - -function test_fun(){ - #choose_one test1 | prefix_time - #sleep 1 - #block_devices | choose_one - - #echo "> "$test - choose_dialog - #sleep 1 - #choose_one | prefix_time -} - -if [ $# -eq 1 ]; then - if [ $1 = "test" ]; then - test_fun - exit 0 - fi -fi - - - if [[ $# -ge 1 ]]; then CMD=$1 shift