mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
IMX: Power off LED and display after poweroff
This commit is contained in:
parent
c3a98c3f74
commit
c1d6d4740d
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=imx6 poweroff service
|
||||||
|
Before=systemd-poweroff.service
|
||||||
|
After=kodi-poweroff.service
|
||||||
|
DefaultDependencies=no
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
Environment=HOME=/storage
|
||||||
|
ExecStart=-/bin/sh -c "echo 0 > /sys/class/leds/imx6\:red\:front/brightness; echo 1 > /sys/class/graphics/fb0/blank"
|
||||||
|
StandardError=null
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=poweroff.target
|
Loading…
x
Reference in New Issue
Block a user