wip
This commit is contained in:
parent
277de6f817
commit
50c02e4b17
1 changed files with 4 additions and 25 deletions
29
unbox.sh
29
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
|
||||
|
|
Loading…
Reference in a new issue