Display Splash Screen on Menu Start

pull/61/head
Dave Crump 2017-01-07 15:58:31 +00:00 zatwierdzone przez GitHub
rodzic e8317ec0c0
commit cf1739311d
1 zmienionych plików z 12 dodań i 1 usunięć

Wyświetl plik

@ -81,6 +81,8 @@ elif [ $RET -eq 0 ]; then
fi
}
############ Function to Select Paths ###############
Pathbrowser() {
if [ -z $1 ]; then
imgpath=$(ls -lhp / | awk -F ' ' ' { print $9 " " $5 } ')
@ -994,7 +996,12 @@ menuchoice=$(whiptail --title "Shutdown Menu" --menu "Select Choice" 16 78 7 \
esac
}
display_splash()
{
sudo killall fbcp
fbcp &
sudo fbi -T 1 -noverbose -a $PATHSCRIPT"/images/BATC_Black.png"
}
OnStartup()
{
@ -1028,6 +1035,10 @@ else
source $PATHSCRIPT"/langfr.sh"
fi
# Display Splash on Touchscreen if fitted
display_splash
status="0"
if [ "$1" != "menu" ]; then # if tx on boot