[Nexus One Themes and Apps] Nighthound:
This script has only been tested with CM ROM, I cannot guarantee that it will work with other ROMs.

DESCRIPTION

I couldn't decide on one single boot animation to use on my phone, so I thought, why not start every boot with a random animation? :)

I threw together a simple script that will randomly choose a boot animation zip file from a directory and copy the file to /data/local. The script defaults to using /sdcard/bootanimation as the directory to store all the animations.​

INSTALLING THE SCRIPT

Extract 09bootanimation from the zip file, then type the following from your command prompt:

adb remount
adb push 09bootanimation /system/etc/init.d
adb shell chmod 750 /system/etc/init.d/09bootanimation

If you are using CM 5.0.6 - 5.0.8, you will need to do an additional step. The fstab file is missing, so extract fstab from the zip file and execute the following:

adb remount
adb push fstab /system/etc

Thanks to godsfilth for figuring out the fstab problem. =)

If you are not using CM ROM, you may have the init.d directory in a different location.​

Reminder: Because the script is installed in the system directory, you need to redo all the installation steps after upgrading your ROM.

INSTALLING BOOT ANIMATIONS

Create a directory called bootanimation in the SD card root directory, and put all your animation zip files in the directory. The script will only choose from zip files in the directory.

If you want to change the default directory, just change the variable in the script.

Thanks to godsfilth for getting it to work with SD cards! =)​

SELECTING A SPECIFIC ANIMATION

If you want to view a new animation, instead of rebooting repeatedly and hoping that it will be selected at random, you can use the following method.

Create a file called bootanimation.use in the bootanimation directory where you have placed all the zip files. The file should contain a single line with the filename of the boot animation, without the directory path. For example:

bootanimation-prash.zip

When you want to go back to random animations, simply delete bootanimation.use from the directory.​

HELP! I CAN'T GET THIS TO WORK!

If you have problems getting the script to work, grab the logcat of the startup process and post it to pastebin. You can get the logcat output by rebooting the phone and then immediately running

adb logcat > log.txt

Once the boot animation has started you can press Ctrl-C to stop the log collection. Please include in your post the ROM that you are running.​

SAMPLE LIST OF BOOT ANIMATIONS

For those who are looking for some boot animations to choose from, here's a small list of animations from other XDA threads. Feel free to recommend animations, and I'll update this list.

Prash's CyanogenMod 5.0

Qteknology's Nexus animations

Nighthound's Win7 Nexus

Nighthound's BSOD

Nighthound's Qteknology's Splash Inverted

nmeofdst8's Nexus One Red Flame Edition

iDance°-->ra1n's Ubuntu Nexus and Tiesto animations

Droid Eris thread with lots of cool boot animations​

FUTURE CHANGES

Eventually I might get motivated enough to write a simple program to simplify the entire process. It would be great if someone has the spare time to do so. :)​

CHANGELOG

Version 1.3

Updated to work with CM 5.0.6 (push fstab to /system/etc) [thanks godsfilth again]

Added option to specify boot animation to use

Added logging output

Version 1.2

Changed filename to 09bootanimation to work with CM Apps2SD.

Version 1.1

Enables storage on SD card [thanks godsfilth!].

Added error checking for no animation files.

Version 1.0

Initial release.