Major overhaul!
There was some bugs that prevented the 3'rd party libs from sometimes being used depending how it was used. In fact it was very much hit and miss with a standard setup. :/
Now .profile is not used anymore instead the script will patch openELEC and wait until everything is loaded before starting XBMC. This is a much better although not pretty solution.
Any broken symlink a will also automatically be restored if broken. This hack works 100% with all unmodified versions including Gotham.
Ok let's start..
SSH to your RPi in windows use putty in host field type ipaddressofrpi the password is openelec.
1. First make a folder for library's we want to super seed openELEC's default path:
2. Download the lastest librtmp.so.0 from http://www.mediafire.com/?x4cvp5hl4m9xr
(librtmp - Always with KSV's latest patch(es) such as redirects) (RedPenguin's "Repo")
3. Copy the file to /storage/lib using either winscp or samba \\openelec place it in downloads then use XBMC file manager to move it to /storage/lib/
4. Execute these two commands in SSH:
5. Download pre-written scripts to /storage/.config:
6. Reboot openELEC.
Enjoy!
To test if its works use the command:
And you should get a success from the log in form of:
Aug 25 18:44:31 rpi512 user.notice autostart.sh: Adding 3rd Party libraries to LD_LIBRARY_PATH!
Aug 25 18:44:32 rpi512 user.notice autostart.sh: Starting XBMC using /etc/init.d/93_xbmc
Alternatively put a bogus librtmp.so.0 in /storage/lib and XBMC should crash when trying to open a live stream.
-
For the techies:
This hack involves using autostart.sh to halt the initial load of xbmc.bin, modifying LD_LIBRARY_PATH and then initiating a secondary load of xbmc.bin but now using the third party libraries (librtmp etc.). The hack will only be applied when the /storage/lib directory is present (exists), and when autostart.sh is being called during the boot sequence (when the parent process ID is 1), and when /storage/lib isn't detected at the beginning of LD_LIBRARY_PATH (and thus needs to be added). The check for PPID means it is possible to call autostart.sh without re-invoking xbmc.bin, which may be useful when testing/debugging other autostart.sh functionality...
Thanks a lot to milhouseVH!
ALWAYS EXECUTE THE COMMANDS EXACTLY AS THEY APPEAR IN THE "code:" BOXES!
To disable /storage/libs from being used:
To enable it again rename it back again:
Remember to reboot between either disable or enable.
Feedback welcome..
There was some bugs that prevented the 3'rd party libs from sometimes being used depending how it was used. In fact it was very much hit and miss with a standard setup. :/
Now .profile is not used anymore instead the script will patch openELEC and wait until everything is loaded before starting XBMC. This is a much better although not pretty solution.
Any broken symlink a will also automatically be restored if broken. This hack works 100% with all unmodified versions including Gotham.
Ok let's start..
SSH to your RPi in windows use putty in host field type ipaddressofrpi the password is openelec.
1. First make a folder for library's we want to super seed openELEC's default path:
Code:
mkdir /storage/lib
(librtmp - Always with KSV's latest patch(es) such as redirects) (RedPenguin's "Repo")
3. Copy the file to /storage/lib using either winscp or samba \\openelec place it in downloads then use XBMC file manager to move it to /storage/lib/
4. Execute these two commands in SSH:
Code:
chmod 755 /storage/lib/librtmp.so.0
ln -s /storage/lib/librtmp.so.0 /storage/lib/librtmp.so
Code:
cd /storage/.config
curl -L http://is.gd/kBaTzY -o autostart.sh
curl -L http://is.gd/yQUqNm -o hacklib
Enjoy!
To test if its works use the command:
Code:
grep autostart.sh /var/log/messages
Aug 25 18:44:31 rpi512 user.notice autostart.sh: Adding 3rd Party libraries to LD_LIBRARY_PATH!
Aug 25 18:44:32 rpi512 user.notice autostart.sh: Starting XBMC using /etc/init.d/93_xbmc
Alternatively put a bogus librtmp.so.0 in /storage/lib and XBMC should crash when trying to open a live stream.
-
For the techies:
This hack involves using autostart.sh to halt the initial load of xbmc.bin, modifying LD_LIBRARY_PATH and then initiating a secondary load of xbmc.bin but now using the third party libraries (librtmp etc.). The hack will only be applied when the /storage/lib directory is present (exists), and when autostart.sh is being called during the boot sequence (when the parent process ID is 1), and when /storage/lib isn't detected at the beginning of LD_LIBRARY_PATH (and thus needs to be added). The check for PPID means it is possible to call autostart.sh without re-invoking xbmc.bin, which may be useful when testing/debugging other autostart.sh functionality...
Thanks a lot to milhouseVH!
ALWAYS EXECUTE THE COMMANDS EXACTLY AS THEY APPEAR IN THE "code:" BOXES!
To disable /storage/libs from being used:
Code:
Code:
mv /storage/lib /storage/lib.bak && sync
reboot
Code:
Code:
mv /storage/lib.bak /storage/lib && sync
Feedback welcome..
Last edited: