Kodi Community Forum

Full Version: [AppleTV] Auto reload kext files?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how can i set my atv to auto load the kext stuff i think it is, as ive just had a power outage and had to run the following on ssh to get it to work again

if [ `grep --count -G '^/sbin/turbo_\(atv\|kext\)_enabler.bin' /etc/rc.local` -eq 0 ]; then

if [ -f /sbin/turbo_atv_enabler.bin ]; then

echo “/sbin/turbo_atv_enabler.bin” > /tmp/rc.top

else

echo “/sbin/turbo_kext_enabler.bin” > /tmp/rc.top

fi

cat /tmp/rc.top /etc/rc.local.original > /etc/rc.local

rm -rf /tmp/rc.top

fi

# add kexload entry to end of rc.local file if missing

if [ `grep --count -G '^/sbin/kextload -v /System/Library/Extensions/BroadcomCrystalHD.kext' /etc/rc.local` -eq 0 ]; then

echo “/sbin/kextload -v /System/Library/Extensions/BroadcomCrystalHD.kext” >> /etc/rc.local

fi

chown root:wheel /etc/rc.local

chmod 644 /etc/rc.local

exit
Can you do a...

Code:
cat /etc/rc.local

..and paste output?
here you go


-bash-2.05b$ cat /etc/rc.local
/sbin/turbo_atv_enabler.bin
/sbin/kextload -v /System/Library/Extensions/BroadcomCrystalHD.kext
This rc.local file is fine
A power outage should not change a thing
And I think rc.local needs to be owned by root/wheel.
So I have this rc.local setup working.

However, I noticed the other day that the rendering settings didn't anylonger allow me to choose the Crystal settings. I had to reboot the aTV in order to make them appear again....

Any thoughts on this? Thanks.
Coyote63 Wrote:So I have this rc.local setup working.

However, I noticed the other day that the rendering settings didn't anylonger allow me to choose the Crystal settings. I had to reboot the aTV in order to make them appear again....

Any thoughts on this? Thanks.

dmesg and xbmc.log when this occurs. Then we don't have to guess.
Thanks davilla,
I will save those informations next time it happens...