diff --git a/buildroot-v86/board/v86/rootfs_overlay/etc/motd b/buildroot-v86/board/v86/rootfs_overlay/etc/motd index 81d97d5..b807967 100644 --- a/buildroot-v86/board/v86/rootfs_overlay/etc/motd +++ b/buildroot-v86/board/v86/rootfs_overlay/etc/motd @@ -1,3 +1,4 @@ +  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  . . ____ _____________ ________. ._. ._. . . . . . . . .  . . _\ \/ /\______ \/ _____// | \. . . . . . . . diff --git a/buildroot-v86/board/v86/rootfs_overlay/etc/profile.sh b/buildroot-v86/board/v86/rootfs_overlay/etc/profile.sh index 5209e60..58dea19 100644 --- a/buildroot-v86/board/v86/rootfs_overlay/etc/profile.sh +++ b/buildroot-v86/board/v86/rootfs_overlay/etc/profile.sh @@ -45,9 +45,27 @@ console(){ # info: adds javascript/css url/script to DOM require(){ file=$(basename "$1") - js '(async () => { - await AFRAME.utils.require({"'$file'": "'$1'"}) - })(); return ""' + ext="${file/*\./}" + + case $ext in + + js|css) + js '(async () => { + await AFRAME.utils.require({"'$file'": "'$1'"}) + })(); return ""' + ;; + + glb|gltf|obj|usdz|fbx) + require 'https://xrfragment.org/dist/xrfragment.aframe.js' + echo "" >> /root/index.html + ;; + + *) + alert $ext "extension is not supported (yet)" + ;; + + esac + } # usage: man diff --git a/buildroot-v86/board/v86/rootfs_overlay/etc/profile.xrsh b/buildroot-v86/board/v86/rootfs_overlay/etc/profile.xrsh index d75f040..7edca4d 100644 --- a/buildroot-v86/board/v86/rootfs_overlay/etc/profile.xrsh +++ b/buildroot-v86/board/v86/rootfs_overlay/etc/profile.xrsh @@ -45,7 +45,7 @@ test -d /dev/browser || { setup_listen_homedir(){ sleep 4 # wait for inode of /mnt/root to become live (due to move_root_to_9pfs) - inotifyd echo /mnt/root | awk ' + infinite inotifyd echo /mnt/root | awk ' # listen for writes to rootdir and send them to DOM /^[we] \/mnt\/root index\.html/ { system("cat "$2"/"$3" | grep -vE \"^#!\" > /dev/browser/html") } diff --git a/buildroot-v86/board/v86/rootfs_overlay/root/.ash_history b/buildroot-v86/board/v86/rootfs_overlay/root/.ash_history index 1359231..7864844 100644 --- a/buildroot-v86/board/v86/rootfs_overlay/root/.ash_history +++ b/buildroot-v86/board/v86/rootfs_overlay/root/.ash_history @@ -8,3 +8,4 @@ enterAR exitVR exitAR tail -n1 -f /dev/browser/console /var/log/messages +require https://coderofsalvation.github.io/xrsh-media/assets/background.glb diff --git a/buildroot-v86/board/v86/rootfs_overlay/root/.profile b/buildroot-v86/board/v86/rootfs_overlay/root/.profile index 99aece8..976f4c4 100644 --- a/buildroot-v86/board/v86/rootfs_overlay/root/.profile +++ b/buildroot-v86/board/v86/rootfs_overlay/root/.profile @@ -13,3 +13,7 @@ test -f index.js && chmod +x index.js && ./index.js | grep -v undefined # start index.html test -f index.html && chmod +x index.html && ./index.html + +# 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 diff --git a/buildroot-v86/board/v86/rootfs_overlay/root/hook.d/save/tolog b/buildroot-v86/board/v86/rootfs_overlay/root/hook.d/save/tolog index 90c1ead..97997be 100755 --- a/buildroot-v86/board/v86/rootfs_overlay/root/hook.d/save/tolog +++ b/buildroot-v86/board/v86/rootfs_overlay/root/hook.d/save/tolog @@ -1,3 +1,3 @@ #!/bin/sh echo "[OK] hook.d/save/tolog: reporting save to OS" -logger "state was saved at $(date)" +logger "state was saved at $(date)" &>/dev/null diff --git a/dist/v86-linux.iso b/dist/v86-linux.iso index 6141963..461750c 100644 Binary files a/dist/v86-linux.iso and b/dist/v86-linux.iso differ