From 986c40a50fe2b35ae3b17c1d36471ebda2136f26 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Mon, 6 Jan 2025 15:57:57 +0100 Subject: [PATCH] fixed a-gltf-model..works via hasharg now --- .../board/v86/rootfs_overlay/root/bin/a-gltf-model | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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