2012-04-05, 02:28
So, I was having a bunch of issues getting the dvbhdhomerun drivers to load before tvheadend started on xbmcbuntu, so then I would need to go in and restart tvheadend or reboot and then restart tvheadend. It was totally bumming me out!
So here's my solution in case anyone else is having troubles.
First, remove dvbhdhomerun-utils and tvheadend from startup:
Now create a new script named "start-tvheadend-right.sh" in /etc/init.d containing the following:
What this script does is start dvbhdhomerun-utils, then it checks every second for the dvb driver to load... when it loads it starts tvheadend. Yay!
Wait! You aren't done yet! Now you need to make the script executable and tell it to auto-start:
Rebooting should now make tvheadend start after the drivers are loaded. Good luck!
So here's my solution in case anyone else is having troubles.
First, remove dvbhdhomerun-utils and tvheadend from startup:
Command Line Wrote:user@xbmc:~$ sudo update-rc.d -f dvbhdhomerun-utils remove
user@xbmc:~$ sudo update-rc.d -f tvheadend remove
Now create a new script named "start-tvheadend-right.sh" in /etc/init.d containing the following:
Code:
#!/bin/bash
service dvbhdhomerun-utils start
while [ ! -d /dev/dvb ]
do
sleep 1
done
service tvheadend start
What this script does is start dvbhdhomerun-utils, then it checks every second for the dvb driver to load... when it loads it starts tvheadend. Yay!
Wait! You aren't done yet! Now you need to make the script executable and tell it to auto-start:
Command Line Wrote:user@xbmc:~$ sudo chmod +x /etc/init.d/start-tvheadend-right.sh
user@xbmc:~$ sudo update-rc.d -f start-tvheadend.sh start 99 2 3 4 5 .
Rebooting should now make tvheadend start after the drivers are loaded. Good luck!