Compare commits

...

3 Commits

3 changed files with 11 additions and 2 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@
/usereeprom.lua
/run
/root*
/musl-cross-make

View File

@ -42,6 +42,10 @@ case "$1" in
TOOL=powerpc-linux-musl
OUT=$TOOL
;;
i686 )
TOOL=i686-linux-musl
OUT=i686-linux-musl
;;
*) echo "Invalid target!" ; exit 1
;;
esac
@ -60,7 +64,7 @@ cd dependencies
if [ $2 = "libressl" ] || [ $# -lt 2 ]; then
git clone https://github.com/libressl-portable/portable.git libressl
git clone --depth 1 https://github.com/libressl-portable/portable.git libressl
cd libressl
./autogen.sh
CFLAGS="-fdata-sections -ffunction-sections" ./configure --host=$TOOL

View File

@ -31,7 +31,11 @@ function boot.boot()
gpu.setBackground(0x000000)
native.sleep(4000000)
os.exit(1)
if modules.computer and modules.computer.shutdown() then
modules.computer.shutdown()
else
os.exit(1)
end
end)
end