diff --git a/buildroot-v86/board/v86/rootfs_overlay/bin/wget b/buildroot-v86/board/v86/rootfs_overlay/bin/wget new file mode 100644 index 0000000..927def9 --- /dev/null +++ b/buildroot-v86/board/v86/rootfs_overlay/bin/wget @@ -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 diff --git a/buildroot-v86/board/v86/rootfs_overlay/root/.profile b/buildroot-v86/board/v86/rootfs_overlay/root/.profile index 73a1eba..4859d66 100644 --- a/buildroot-v86/board/v86/rootfs_overlay/root/.profile +++ b/buildroot-v86/board/v86/rootfs_overlay/root/.profile @@ -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. diff --git a/buildroot-v86/board/v86/rootfs_overlay/root/bin/watchfs b/buildroot-v86/board/v86/rootfs_overlay/root/bin/watchfs index 707d59b..61994cd 100755 --- a/buildroot-v86/board/v86/rootfs_overlay/root/bin/watchfs +++ b/buildroot-v86/board/v86/rootfs_overlay/root/bin/watchfs @@ -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) } ' diff --git a/buildroot-v86/board/v86/rootfs_overlay/root/bin/ziprun b/buildroot-v86/board/v86/rootfs_overlay/root/bin/ziprun index 8c3120b..3178e76 100755 --- a/buildroot-v86/board/v86/rootfs_overlay/root/bin/ziprun +++ b/buildroot-v86/board/v86/rootfs_overlay/root/bin/ziprun @@ -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" diff --git a/buildroot-v86/board/v86/rootfs_overlay/root/manual.md b/buildroot-v86/board/v86/rootfs_overlay/root/manual.md index df9d185..620543b 100644 --- a/buildroot-v86/board/v86/rootfs_overlay/root/manual.md +++ b/buildroot-v86/board/v86/rootfs_overlay/root/manual.md @@ -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: diff --git a/dist/v86-linux.iso b/dist/v86-linux.iso index dac338b..a8d201a 100644 Binary files a/dist/v86-linux.iso and b/dist/v86-linux.iso differ