diff --git a/projects/imx6/filesystem/usr/lib/systemd/system/imx6-poweroff.service b/projects/imx6/filesystem/usr/lib/systemd/system/imx6-poweroff.service new file mode 100644 index 0000000000..fe62bd2fa4 --- /dev/null +++ b/projects/imx6/filesystem/usr/lib/systemd/system/imx6-poweroff.service @@ -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