update
This commit is contained in:
parent
f37927b6c4
commit
e6595dc6b1
6 changed files with 28 additions and 2 deletions
23
buildroot-v86/board/v86/rootfs_overlay/bin/wget
Normal file
23
buildroot-v86/board/v86/rootfs_overlay/bin/wget
Normal 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
|
||||||
|
|
@ -46,7 +46,7 @@ test -f /root/.boot || {
|
||||||
|
|
||||||
# uncomment to set location (3D scene file [with XR Fragments] )
|
# uncomment to set location (3D scene file [with XR Fragments] )
|
||||||
#require https://xrfragment.org/index.glb
|
#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.
|
# auto-load /mnt/.env (if passed via AFRAME's isoterminal="overlayfs: boot.sh" e.g.
|
||||||
|
|
|
||||||
|
|
@ -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\.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 index\.js/ { system("cat "$2"/"$3" | grep -vE \"^#!\" > /dev/browser/js") }
|
||||||
/^[wne] \/root\/.config\/launcher/ { system("/root/bin/launcher init") }
|
/^[wne] \/root\/.config\/launcher/ { system("/root/bin/launcher init") }
|
||||||
/.*/ { system("logger "$0) }
|
#/.*/ { system("logger "$0) }
|
||||||
|
|
||||||
'
|
'
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ dir="$(basename "$file")"
|
||||||
|
|
||||||
logger "$0: extracting $file"
|
logger "$0: extracting $file"
|
||||||
|
|
||||||
|
test -d "/root/$dir" && rm -rf "/root/$dir"
|
||||||
mkdir -p "/root/$dir"
|
mkdir -p "/root/$dir"
|
||||||
cd "/root/$dir"
|
cd "/root/$dir"
|
||||||
unzip "$file"
|
unzip "$file"
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,8 @@ Currently the following languages are supported:
|
||||||
* nano (busybox nano)
|
* nano (busybox nano)
|
||||||
* mg (microemacs)
|
* mg (microemacs)
|
||||||
|
|
||||||
|
> TIP: install the [full nano package](http://xrsh.isvery.ninja/#nano.zip) for batteries-included syntax highlighting
|
||||||
|
|
||||||
# Autoboot
|
# Autoboot
|
||||||
|
|
||||||
To skip the bootmenu you can provide a bootoption via the URL:
|
To skip the bootmenu you can provide a bootoption via the URL:
|
||||||
|
|
|
||||||
BIN
dist/v86-linux.iso
vendored
BIN
dist/v86-linux.iso
vendored
Binary file not shown.
Loading…
Add table
Reference in a new issue