diff --git a/buildroot-v86/board/v86/rootfs_overlay/root/bin/a-gltf-model b/buildroot-v86/board/v86/rootfs_overlay/root/bin/a-gltf-model index 28cadf6..25cce29 100755 --- a/buildroot-v86/board/v86/rootfs_overlay/root/bin/a-gltf-model +++ b/buildroot-v86/board/v86/rootfs_overlay/root/bin/a-gltf-model @@ -1,7 +1,11 @@ #!/bin/sh test -n "$1" || { echo "usage: a-gltf-model "; exit; } -file="$(readlink -f "$1")" -file="${file#/}" # strip leading slash if present +file="$1" +echo "$file" | grep -q http || { + file="$(readlink -f "$1")" + file="${file#/}" # strip leading slash if present + file="file://xrsh/$file" +} -echo "" >> /root/index.html +echo "" >> /root/index.html