This commit is contained in:
Leon van Kammen 2025-06-20 17:16:55 +02:00
parent f37927b6c4
commit e6595dc6b1
6 changed files with 28 additions and 2 deletions

View file

@ -0,0 +1,23 @@
#!/bin/sh
#
# this is a curl/wget stub which
# substitute it with browser's javascript fetch()
url="$1"
js = '
url = args[0]
ret = 0
fetch(url)
.then( (res) => res.arrayBuffer() )
.then( (abuf) => {
buf = new Uint8Array(abuf)
})
.catch( (e) => {
done = true
ret = 1
})
'
# wait for response filese

View file

@ -46,7 +46,7 @@ test -f /root/.boot || {
# uncomment to set location (3D scene file [with XR Fragments] )
#require https://xrfragment.org/index.glb
#require https://coderofsalvation.github.io/xrsh-media/assets/background.glb
require https://coderofsalvation.github.io/xrsh-media/assets/background.glb
}
# auto-load /mnt/.env (if passed via AFRAME's isoterminal="overlayfs: boot.sh" e.g.

View file

@ -5,6 +5,6 @@ exec inotifyd echo /root /root/.config/launcher | awk '
/^[wne] \/root index\.html/ { system("cat "$2"/"$3" | grep -vE \"^#!\" > /dev/browser/html") }
/^[wne] \/root index\.js/ { system("cat "$2"/"$3" | grep -vE \"^#!\" > /dev/browser/js") }
/^[wne] \/root\/.config\/launcher/ { system("/root/bin/launcher init") }
/.*/ { system("logger "$0) }
#/.*/ { system("logger "$0) }
'

View file

@ -5,6 +5,7 @@ dir="$(basename "$file")"
logger "$0: extracting $file"
test -d "/root/$dir" && rm -rf "/root/$dir"
mkdir -p "/root/$dir"
cd "/root/$dir"
unzip "$file"

View file

@ -51,6 +51,8 @@ Currently the following languages are supported:
* nano (busybox nano)
* mg (microemacs)
> TIP: install the [full nano package](http://xrsh.isvery.ninja/#nano.zip) for batteries-included syntax highlighting
# Autoboot
To skip the bootmenu you can provide a bootoption via the URL:

BIN
dist/v86-linux.iso vendored

Binary file not shown.