mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
2514fbf3b9
commit
a6ad1cd64b
@ -8,7 +8,7 @@ export ctx_log=${ctx_log:=bin/boot.log}
|
|||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
[ -d bin ] || mkdir bin
|
[ -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
|
[ -e bin/ice.bin ] && chmod u+x bin/ice.bin && return
|
||||||
|
|
||||||
bin="ice"
|
bin="ice"
|
||||||
@ -22,7 +22,7 @@ prepare() {
|
|||||||
arm*) bin=${bin}.arm ;;
|
arm*) bin=${bin}.arm ;;
|
||||||
*) bin=${bin}.386 ;;
|
*) bin=${bin}.386 ;;
|
||||||
esac
|
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() {
|
start() {
|
||||||
trap HUP hup && while true; do
|
trap HUP hup && while true; do
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
title "contexts"
|
title "contexts"
|
||||||
premenu
|
premenu
|
||||||
|
source lock.shy
|
||||||
|
|
||||||
chapter "实践"
|
chapter "实践"
|
||||||
label "实践" `
|
label "实践" `
|
||||||
|
Loading…
x
Reference in New Issue
Block a user