Skip to content

Instantly share code, notes, and snippets.

@kokoye2007
Created December 8, 2015 13:28
Show Gist options
  • Save kokoye2007/43541aa68c08851934f4 to your computer and use it in GitHub Desktop.
Save kokoye2007/43541aa68c08851934f4 to your computer and use it in GitHub Desktop.
#! /bin/sh
### BEGIN INIT INFO
### [email protected]
# 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.mov &
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
:
@kokoye2007
Copy link
Author

  • sudo vi /boot/cmdline.txt
  • Add quiet to the end of the line.
  • sudo vi /etc/init.d/pisplash
    • add this script
  • sudo chmod a+x /etc/init.d/pisplash
  • sudo insserv /etc/init.d/pisplash
  • save your video
    • /home/pi/boot.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment