2010-01-13, 20:17
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
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