Sunday 9 March 2014

Boot Animation On Raspberry Pi !!

Bored of your pi booting up in text only ?

Here's a solution to pimp it up!


  1. Copy & Paste
    sudo apt-get install omxplayer
  2. copy the boot video to /home/pi as boot.mp4
  3. create this init script with your editor in /etc/init.d/asplashscreen
    sudo nano /etc/init.d/asplashscreen
  4. Copy & Paste

#! /bin/sh
### BEGIN INIT INFO
# Provides:          asplashscreen
# Required-Start:
# Required-Stop:
# Should-Start:      
# Default-Start:     S
# Default-Stop:
# Short-Description: Show custom splashscreen
# Description:       Show custom splashscreen
### END INIT INFO

do_start () {

    omxplayer /home/pi/boot.mp4 &  
    exit 0
}

case "$1" in
  start|"")
    do_start
    ;;
  restart|reload|force-reload)
    echo "Error: argument '$1' not supported" >&2
    exit 3
    ;;
  stop)
    # No-op
    ;;
  status)
    exit 0
    ;;
  *)
    echo "Usage: asplashscreen [start|stop]" >&2
    exit 3
    ;;
esac

:

5)Copy and Paste
sudo chmod a+x /etc/init.d/asplashscreen

6)Copy and Paste
sudo insserv /etc/init.d/asplashscreen

Finally Reboot and Enjoy!!!


2 comments: