mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-10-01 03:43:49 +08:00
update weston systemd config
This commit is contained in:
@@ -15,6 +15,7 @@ TTYVHangup=yes
|
||||
TTYVTDisallocate=yes
|
||||
|
||||
ExecStartPre=/bin/bash -c "/usr/local/venv/bin/python -c 'import fcntl; KDSETMODE = 0x4B3A; KD_TEXT = 0x00; fd = open(\"/dev/tty1\", \"w\"); fcntl.ioctl(fd, KDSETMODE, KD_TEXT); fd.close()'"
|
||||
ExecStartPre=/bin/bash -c "/usr/local/venv/bin/python -c 'from PIL import Image; img=Image.open(\"/usr/comma/bg.jpg\"); (img.rotate(180) if open(\"/sys/devices/platform/vendor/vendor:gpio-som-id/som_id\").read().strip() == \"1\" else img).save(\"/tmp/bg.jpg\")'"
|
||||
ExecStartPre=/bin/bash -c "mkdir -p $XDG_RUNTIME_DIR"
|
||||
ExecStartPre=/bin/bash -c "chown -R comma: $XDG_RUNTIME_DIR"
|
||||
ExecStartPre=/bin/bash -c "chmod -R 700 $XDG_RUNTIME_DIR"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[shell]
|
||||
background-image=/usr/comma/bg.jpg
|
||||
background-image=/tmp/bg.jpg
|
||||
background-type=scale-crop
|
||||
close-animation=none
|
||||
|
||||
Reference in New Issue
Block a user