mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2026-10-28 09:43:51 +00:00
commit 54e685ba9fef2b5fc1505ddc932e4fa3fe87ed68 Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed Aug 26 17:46:15 2026 -0700 improvements commitb442a51a71Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed Aug 26 14:49:31 2026 -0700 docker: add new build deps for android commit1e6370391eMerge:b21181c0681459Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed Aug 26 14:37:15 2026 -0700 Merge branch 'master' into brightness commitb21181c675Author: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sun Aug 23 16:58:09 2026 -0700 update display brightness - initial implementation
31 lines
665 B
Bash
Executable File
31 lines
665 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Buildroot doesn't allow us to have a ld.conf.so.d so force the LD_LIBRARY_PATH here
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/aarch64-linux-gnu/tegra:/usr/lib/aarch64-linux-gnu/tegra-egl"
|
|
export DISPLAY=:0
|
|
export SDL_VIDEODRIVER=x11
|
|
|
|
# Start X
|
|
X "$DISPLAY" -nolisten tcp vt1 &
|
|
X_PID=$!
|
|
|
|
# Wait until X is responsive
|
|
for i in 1 2 3 4 5 6 7 8 9 10; do
|
|
xset q >/dev/null 2>&1 && break
|
|
sleep 1
|
|
done
|
|
|
|
# Run Vanilla in foreground
|
|
/usr/bin/vanilla > /.local/share/Vanilla/vanilla.log 2>&1
|
|
APP_RC=$?
|
|
|
|
# Clean up X
|
|
kill "$X_PID" 2>/dev/null
|
|
wait "$X_PID" 2>/dev/null
|
|
|
|
# Reboot when app exits
|
|
reboot -f
|
|
|
|
# Fallback if reboot fails
|
|
exit "$APP_RC"
|