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.
This commit is contained in:
Stefan Saraev 2015-04-29 20:33:46 +03:00
parent 197b4dd731
commit 60ab2c0410
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ DefaultDependencies=no
[Service]
Type=oneshot
Environment=HOME=/storage
ExecStart=-/bin/sh /storage/.config/shutdown.sh halt
ExecStart=-/bin/sh -c ". /etc/profile; exec /bin/sh /storage/.config/shutdown.sh halt"
RemainAfterExit=yes
[Install]

View File

@ -7,7 +7,7 @@ DefaultDependencies=no
[Service]
Type=oneshot
Environment=HOME=/storage
ExecStart=-/bin/sh /storage/.config/shutdown.sh poweroff
ExecStart=-/bin/sh -c ". /etc/profile; exec /bin/sh /storage/.config/shutdown.sh poweroff"
RemainAfterExit=yes
[Install]

View File

@ -7,7 +7,7 @@ DefaultDependencies=no
[Service]
Type=oneshot
Environment=HOME=/storage
ExecStart=-/bin/sh /storage/.config/shutdown.sh reboot
ExecStart=-/bin/sh -c ". /etc/profile; exec /bin/sh /storage/.config/shutdown.sh reboot"
RemainAfterExit=yes
[Install]