2024-05-05 20:35:11 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-05-12 15:51:38 +00:00
|
|
|
. /usr/share/cage-ui/cage-ui-autorotate.sh
|
|
|
|
|
2024-05-05 20:35:11 +00:00
|
|
|
if [ -d /etc/cage-ui ]; then
|
|
|
|
for script in /etc/cage-ui/*.sh; do
|
|
|
|
# shellcheck source=/dev/null # since we do not control these scripts
|
|
|
|
. "$script"
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$CAGE_UI_COMMAND" ]; then
|
|
|
|
if command -v postmarketos-demos >/dev/null 2>&1; then
|
|
|
|
CAGE_UI_COMMAND=postmarketos-demos
|
|
|
|
else
|
|
|
|
echo "No command to run. Cage-UI expects a command to be run"
|
|
|
|
echo "defined in environment variable named CAGE_UI_COMMAND."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
exec "$CAGE_UI_COMMAND"
|