#!/bin/sh ## # Kristian Erik Hermansen # 20071226 # Adapted from: https://mikesubuntu.blogspot.com/2007/10/how-to-install-rockbox-and-extras-on.html # You may choose to modify this script to suit your needs. ## # defaults ipodmnt=/media/IPOD # need to be root uid=`id -u` if [ "$uid" -ne 0 ]; then echo echo "You must be root to run this and write to your iPod!" echo exit 1 fi echo echo "Please plug in your v5/v5.5 video iPod now and ensure it is present in /dev!" echo "This installer assumes /dev/sda is the proper device." echo "This installer assumes /media/IPOD is the proper mount target." echo -n "Rockbox/iPod install options. Enter iPod size of 30, 60, or 80: " read ipodsize # yeah, yeah, tmp-fu rm -rf /tmp/rockbox mkdir /tmp/rockbox cd /tmp/rockbox install_thirty() { wget https://home.centurytel.net/tdtooke/rockbox32.zip unzip rockbox32.zip } install_sixty_eighty() { wget https://home.centurytel.net/tdtooke/rockbox64.zip unzip rockbox64.zip } case "$ipodsize" in 30) echo "30gb model chosen"; install_thirty; ;; 60) echo "60gb model chosen"; install_sixty_eighty; ;; 80) echo "80gb model chosen"; install_sixty_eighty; ;; *) echo echo "Sorry, your iPod version is not supported in this installation. Check the Rockbox website for updates :-(" echo exit 2 esac # install addons wget https://download.rockbox.org/daily/fonts/rockbox-fonts.zip wget https://download.rockbox.org/useful/rockdoom.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/ROCKBlocks.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/Theme_X_HighBar.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/cabbie-ipod.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/45rpm.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/ubuntu.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/yobunny.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/phkFORUM.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/phkOSC.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/phkAMP.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/phkGUITAR.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/phkTAPE.zip wget https://www.rockbox.org/twiki/pub/Main/WpsIpod5g/slant.zip unzip -o rockbox-fonts.zip unzip -o rockdoom.zip unzip -o StainPack.zip unzip -o Theme_X_HighBar.zip unzip -o cabbie-ipod.zip unzip -o 45rpm.zip unzip -o ubuntu.zip unzip -o yobunny.zip unzip -o Cool_Blue_v1.2.zip unzip -o phkFORUM.zip unzip -o phkOSC.zip unzip -o phkAMP.zip unzip -o phkGUITAR.zip unzip -o phkTAPE.zip unzip -o slant.zip # transfer Rockbox data to iPod cp -R .rockbox "$ipodmnt" # boot loader configuration cat > "$ipodmnt"/loader.cfg <