Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #! /bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides: asplashscreen
  4. # Required-Start:
  5. # Required-Stop:
  6. # Should-Start:
  7. # Default-Start: S
  8. # Default-Stop:
  9. # Short-Description: Show custom splashscreen
  10. # Description: Show custom splashscreen
  11. ### END INIT INFO
  12.  
  13.  
  14. do_start () {
  15.  
  16. /usr/bin/fbi -T 1 -noverbose -a /etc/splash.png
  17. exit 0
  18. }
  19.  
  20. case "$1" in
  21. start|"")
  22. do_start
  23. ;;
  24. restart|reload|force-reload)
  25. echo "Error: argument '$1' not supported" >&2
  26. exit 3
  27. ;;
  28. stop)
  29. # No-op
  30. ;;
  31. status)
  32. exit 0
  33. ;;
  34. *)
  35. echo "Usage: asplashscreen [start|stop]" >&2
  36. exit 3
  37. ;;
  38. esac
  39.  
  40. :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement