Last night I was able to patch the Sundtek Add-on installer for OpenELEC "Helix" on my Cubox-i, a bit of an ugly hack but mediasrv is now autostarted on boot, working 100% with tvheadend server and tvheadend htsp client all on the same Cubox. The installation procedure below is not pretty, but it's only needed once.
Starting from the Sundtek OpenELEC Add-on 3.0.3, here is what I did:
1) On my PC, unpacked driver.dvb.sundtek-mediatv-3.0.3.zip
2) In addon.xml lines 7/8, changed "os.openelec.tv" to "4.0" and "xbmc.python" to "2.1.0"
3) In bin/userspace-driver.sh line 256, replaced "for SERIAL in ${SERIALS[ @ ]}; do" with "for SERIAL in $SERIALS; do"
4) Repack "driver.dvb.sundtek-mediatv-3.0.3-patched.zip", copy to Cubox
5) Install "driver.dvb.sundtek-mediatv-3.0.3-patched.zip" on Cubox
6) SSH into Cubox, run "/bin/sh .xbmc/addons/driver.dvb.sundtek-mediatv/bin/userspace-driver.sh"
Things that need to be fixed:
- It seems the Sundtek OpenELEC Add-on has been written for OpenELEC 3.0 and needs to be upgraded to 4.0. OpenELEC will accept this Add-on only after step 2) is applied, else it refuses to install the Add-on. I found that when comparing addon.xml with the one from the current tvheadend add-on sources, not sure about all implications, still needs to be looked into!
- Step 3) is the worst. The problem is that the BusyBox shell reports a syntax error in line 256. I had no time to look into it so far, so I replaced it with a shorter expression that the shell parses. Note that this part of the script is not executed in my case, the outmost condition is FALSE for me, so it doesn't matter what I replace line 256 with as long as it is syntactically correct. So this syntax error is only worked around, it still needs to be fixed!
- Step 6) is neccessary because OpenELEC does not run userspace-driver.sh as it should when installing the Sundtek Add-on. I have no clue why this fails to run automatically, this also needs to be fixed!
I know all this is very quick and dirty, but maybe this can help you when upgrading the OpenELEC Add-on.
Regards,
Christian