0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 19:09:46 +00:00
Stefan Saraev 60ab2c0410 kodi: shutdown.sh: source etc/profile
lets make this consistent as with autostart.sh. too many people
have no idea how to deal with $PATH and why their 3rdparty stuff
dont work in shutdown.sh.
2015-04-29 20:33:51 +03:00

15 lines
303 B
Desktop File

[Unit]
Description=Kodi reboot script
After=kodi.service
Before=systemd-reboot.service
DefaultDependencies=no
[Service]
Type=oneshot
Environment=HOME=/storage
ExecStart=-/bin/sh -c ". /etc/profile; exec /bin/sh /storage/.config/shutdown.sh reboot"
RemainAfterExit=yes
[Install]
WantedBy=reboot.target