docs: Add 2, update 5 and remove 1 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 45s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 45s
This commit is contained in:
@@ -30,6 +30,23 @@ ENABLE_WATCHDOG="${ENABLE_WATCHDOG:-true}"
|
||||
ENABLE_AUTO_LOGIN="${ENABLE_AUTO_LOGIN:-true}"
|
||||
ENABLE_HDMI_KEEP_ALIVE="${ENABLE_HDMI_KEEP_ALIVE:-true}"
|
||||
|
||||
# Get system type from environment or try to detect it
|
||||
if [ -z "$SYSTEM_TYPE" ]; then
|
||||
# Auto-detect if not provided
|
||||
if [ -f "/proc/device-tree/model" ] && grep -qi "raspberry" /proc/device-tree/model 2>/dev/null; then
|
||||
SYSTEM_TYPE="rpi"
|
||||
elif [ -f "/etc/os-release" ]; then
|
||||
. /etc/os-release
|
||||
if [ "$ID" = "ubuntu" ] && [ "$(uname -m)" = "x86_64" ]; then
|
||||
SYSTEM_TYPE="ubuntu"
|
||||
elif [ "$ID" = "raspbian" ] || ([ "$ID" = "debian" ] && ([ "$(uname -m)" = "aarch64" ] || [ "$(uname -m)" = "armv7l" ])); then
|
||||
SYSTEM_TYPE="rpi"
|
||||
fi
|
||||
fi
|
||||
# Default to rpi if still not detected
|
||||
SYSTEM_TYPE="${SYSTEM_TYPE:-rpi}"
|
||||
fi
|
||||
|
||||
# Build the docker run command - needs privileged access to configure host
|
||||
# Using --env-file to avoid quoting issues
|
||||
cat > /tmp/squashdisplay.env << EOF
|
||||
@@ -42,6 +59,7 @@ GPU_MEM=${GPU_MEM}
|
||||
ENABLE_WATCHDOG=${ENABLE_WATCHDOG}
|
||||
ENABLE_AUTO_LOGIN=${ENABLE_AUTO_LOGIN}
|
||||
ENABLE_HDMI_KEEP_ALIVE=${ENABLE_HDMI_KEEP_ALIVE}
|
||||
SYSTEM_TYPE=${SYSTEM_TYPE}
|
||||
EOF
|
||||
|
||||
DOCKER_RUN_CMD="docker run -d \
|
||||
|
Reference in New Issue
Block a user