mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 15:10:38 +01:00
fix mode
This commit is contained in:
parent
7c9062e490
commit
b8d7d0c973
1 changed files with 11 additions and 4 deletions
|
@ -22,11 +22,11 @@ contentWords=($2)
|
|||
contentString=$2
|
||||
|
||||
# 3rd PARAMETER (optional): Place of display - could be "lcd" or "ssh" (defalt)
|
||||
displayMode=$3
|
||||
if [ "${displayMode}" == "" ]; then
|
||||
displayMode="ssh"
|
||||
mode=$3
|
||||
if [ "${mode}" == "" ]; then
|
||||
mode="ssh"
|
||||
fi
|
||||
if [ "${displayMode}" != "lcd" ] && [ "${displayMode}" != "ssh" ]; then
|
||||
if [ "${mode}" != "lcd" ] && [ "${mode}" != "ssh" ]; then
|
||||
echo "error='unknown 3rd parameter value'"
|
||||
exit 1
|
||||
fi
|
||||
|
@ -110,6 +110,13 @@ If this takes too long please check
|
|||
your connection to internet router.
|
||||
" 7 41
|
||||
|
||||
elif [ "${eventID}" == "waitsetup" ] && [ "${mode}" == "ssh" ]; then
|
||||
|
||||
dialog --backtitle "${backtitle}" --cr-wrap --infobox "
|
||||
Preparing Setup
|
||||
Please wait ...
|
||||
" 6 24
|
||||
|
||||
elif [ "${eventID}" = "noIP-LAN" ] || [ "${eventID}" = "noIP-WIFI" ]; then
|
||||
|
||||
# this event is mostly for LCD/HDMI display
|
||||
|
|
Loading…
Add table
Reference in a new issue