Kodi startup with IRexec
#1
Hello. When I start kodi by my remote it works fine, but if I press the same button at the remote when kodi is running, it starts again when I close it. But if the program is on and I run the script in terminal with irexec it says that kodi is running and not starts again when I close it.. What could the problem be? Hope that anyone knows the problem! Regards
Reply
#2
I use this myself:

Code:
#!/bin/sh

# If XBMC is running, kill it and exit
pgrep kodi.bin && killall -s1 kodi.bin && exit 0

# If XBMC is not running, start it as user "brix"
pgrep kodi.bin || su brix -c /home/brix/start_xbmc.sh && exit 0

exit 0
Reply
#3
(2015-04-23, 20:13)negge Wrote: I use this myself:

Code:
#!/bin/sh

# If XBMC is running, kill it and exit
pgrep kodi.bin && killall -s1 kodi.bin && exit 0

# If XBMC is not running, start it as user "brix"
pgrep kodi.bin || su brix -c /home/brix/start_xbmc.sh && exit 0

exit 0

What does your start_xbmc.sh looks like? When I use the su command it just waits to input password..
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi startup with IRexec0