-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated readme, installer and added splashscreen install
- Loading branch information
Showing
4 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#! /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 | ||
|
||
: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
echo "Disable big splash screen raspberry pi" | ||
sudo bash -c "echo 'disable_splash=1' >> /boot/config.txt" | ||
|
||
echo "Removing login shell on TTY1" | ||
sudo systemctl disable getty@tty1 | ||
|
||
echo "Installing fbi for custom splash screen linux" | ||
sudo apt install fbi | ||
|
||
# Get script dir | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
echo "Copying custom splash screen" | ||
sudo cp $DIR/splash.png /etc/ | ||
|
||
echo "Copying custom splash screen init.d service" | ||
sudo cp $DIR/asplashscreen /etc/init.d/ | ||
|
||
echo "Set permissions" | ||
sudo chmod a+x /etc/init.d/asplashscreen | ||
|
||
echo "Install for init mode" | ||
sudo insserv /etc/init.d/asplashscreen |