1
0
forked from x/ContextOS
This commit is contained in:
shaoying 2020-09-09 20:21:46 +08:00
parent 2514fbf3b9
commit a6ad1cd64b
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@ export ctx_log=${ctx_log:=bin/boot.log}
prepare() {
[ -d bin ] || mkdir bin
[ -e bin/ice.sh ] || curl -sq $ctx_dev/publish/ice.sh -o bin/ice.sh && chmod u+x bin/ice.sh
[ -e bin/ice.sh ] || (curl -o bin/ice.sh -sq $ctx_dev/publish/ice.sh || wget -O bin/ice.sh $ctx_dev/publish/ice.sh) && chmod u+x bin/ice.sh
[ -e bin/ice.bin ] && chmod u+x bin/ice.bin && return
bin="ice"
@ -22,7 +22,7 @@ prepare() {
arm*) bin=${bin}.arm ;;
*) bin=${bin}.386 ;;
esac
curl -sq $ctx_dev/publish/${bin} -o bin/ice.bin && chmod u+x bin/ice.bin
(curl -o bin/ice.bin -sq $ctx_dev/publish/${bin} || wget -O bin/ice.bin $ctx_dev/publish/${bin}) && chmod u+x bin/ice.bin
}
start() {
trap HUP hup && while true; do

View File

@ -1,5 +1,6 @@
title "contexts"
premenu
source lock.shy
chapter "实践"
label "实践" `