Advertisement
Guest User

Untitled

a guest
Mar 19th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. #! /bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides: nasplashscreen
  4. # Required-Start:
  5. # Required-Stop:
  6. # Default-Start: S
  7. # Default-Stop:
  8. # Short-Description: Show custom splashscreen
  9. # Description: Show custom splashscreen
  10. ### END INIT INFO
  11.  
  12. do_start () {
  13. /usr/local/bin/fbcp &
  14. omxplayer -o hdmi /etc/splashscreen.mp4 --layer 10000 &
  15. /usr/bin/fbi -T 1 -noverbose -a /etc/splashloading.png &
  16.  
  17. # line=$(head -n 1 /etc/splashscreen.list)
  18. # isMovie=$(echo $line | grep -o "*.mpg")
  19. # if [ -z "$isMovie" ]; then
  20. # /usr/bin/fbi -T 2 -once -t 20 -noverbose -a -l /etc/splashscreen.list &
  21. # else
  22. # mplayer $line &
  23. # fi
  24. exit 0
  25. }
  26.  
  27. case "$1" in
  28. start|"")
  29. do_start
  30. ;;
  31. restart|reload|force-reload)
  32. echo "Error: argument '$1' not supported" >&2
  33. exit 3
  34. ;;
  35. stop)
  36. # No-op
  37. ;;
  38. status)
  39. exit 0
  40. ;;
  41. *)
  42. echo "Usage: asplashscreen [start|stop]" >&2
  43. exit 3
  44. ;;
  45. esac
  46.  
  47. :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement