stanleyella
Posts: 7
Joined: Mon Jul 28, 2014 8:45 pm

Re: Exit Fix for Kodi Raspbian built

Sat Mar 26, 2016 5:51 pm

Type this in text editor then save in Documents as Kodi
#!/bin/bash
kodi
if [ "$?" = "0" ]; then
killall kodi
fbset -depth 8 && fbset -depth 16
xrefresh
fi


In Terminal type
cd Documents/
chmod +x kodi

Copy the file Kodi to the desktop and click and select Execute.Works on Jessie RPi 2&3

giorgis
Posts: 10
Joined: Sat Jan 09, 2016 7:31 pm

Re: Exit Fix for Kodi Raspbian built

Mon Mar 28, 2016 6:37 am

stanleyella wrote:Type this in text editor then save in Documents as Kodi
#!/bin/bash
kodi
if [ "$?" = "0" ]; then
killall kodi
fbset -depth 8 && fbset -depth 16
xrefresh
fi


In Terminal type
cd Documents/
chmod +x kodi

Copy the file Kodi to the desktop and click and select Execute.Works on Jessie RPi 2&3
Indeed is working on RPi2 with Jessie and Kodi15.2 installed!

Thanks a lot!
There are only 10 types of people. Those who know binary and those who don't

chrissheffield
Posts: 2
Joined: Fri Apr 08, 2016 10:24 pm

Re: Exit Fix for Kodi Raspbian built

Fri Apr 08, 2016 10:28 pm

tried your process but keeping getting the following error.

[email protected]:~ $ cd Documents/chmod +x kodi
bash: cd: Documents/chmod: No such file or directory

giorgis
Posts: 10
Joined: Sat Jan 09, 2016 7:31 pm

Re: Exit Fix for Kodi Raspbian built

Sat Apr 09, 2016 4:44 am

These are two different commands (cd vs chmod) and must be written in two different lines each one following by pressing the "Enter" key or they can be combined using the "&" .
There are only 10 types of people. Those who know binary and those who don't

User avatar
gychang
Posts: 24
Joined: Tue Mar 26, 2013 7:54 pm
Location: 95618

Re: Exit Fix for Kodi Raspbian built

Sat May 14, 2016 8:00 pm

I got the script saved and added chmod +x kodi.sh, now do I put the script in the startup folder? how do I do this?

Eni-RPI
Posts: 14
Joined: Wed May 04, 2016 4:05 am

Re: Exit Fix for Kodi Raspbian built

Sun May 29, 2016 2:50 am

stanleyella wrote:Type this in text editor then save in Documents as Kodi
#!/bin/bash
kodi
if [ "$?" = "0" ]; then
killall kodi
fbset -depth 8 && fbset -depth 16
xrefresh
fi


In Terminal type
cd Documents/
chmod +x kodi

Copy the file Kodi to the desktop and click and select Execute.Works on Jessie RPi 2&3
WOW thanks !
How can I add an icon to the shell script ? (thanks again)

deathsonic18
Posts: 4
Joined: Thu Mar 30, 2017 9:11 pm

Re: Exit Fix for Kodi Raspbian built

Thu Mar 30, 2017 9:13 pm

I tried
Type this in text editor then save in Documents as Kodi
#!/bin/bash
kodi
if [ "$?" = "0" ]; then
killall kodi
fbset -depth 8 && fbset -depth 16
xrefresh
fi


In Terminal type
cd Documents/
chmod +x kodi

Copy the file Kodi to the desktop and click and select Execute.Works on Jessie RPi 2&3
However kodi still crashes when I exit
I got a raspberry pi 3, raspbian pixel , jessie

Return to “General discussion”