Merge pull request #4149 from fritsch/master

IMX: Power off LED and display after poweroff
This commit is contained in:
Peter Frühberger 2015-05-14 19:58:19 +02:00
commit 999b8c25a8

View File

@ -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