Created
February 27, 2017 15:28
-
-
Save fparaggio/2961b11979b58f5a7dfc2b433b900a38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 () { | |
/usr/bin/fbi -T 1 -noverbose -a /etc/splash.png | |
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 | |
: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment