Skip to content

Commit

Permalink
Disambiguate driver menu text
Browse files Browse the repository at this point in the history
Removing the “Enable” word from the menu, prevents confusion when
“Enable Driver” text appears in the console output even when when you
had selected to disable the driver.
  • Loading branch information
garycmartin committed Jul 5, 2016
1 parent ac3e32d commit 58ccf83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/papirus-config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

OPTION=$(whiptail --title "PaPiRus Config" --menu "Choose an option" 22 78 16 \
"Screen Size" "Change the screen ePaper screen size." \
"Enable Driver" "Enable and disable the ePaper driver." \
"ePaper Driver" "Enable and disable the ePaper driver." \
"Mirror Framebuffer" "Use ePaper as a general display." \
"Web Interface" "Enable the web interface." \
"Test Mode" "Enable auto test when HAT is plugged in." 3>&1 1>&2 2>&3)
Expand Down Expand Up @@ -31,10 +31,10 @@ if [ "$OPTION" = "Screen Size" ]; then

fi

if [ "$OPTION" = "Enable Driver" ]; then
if [ "$OPTION" = "ePaper Driver" ]; then

#!/bin/bash
if (whiptail --title "Enable Driver" --yes-button "Enable" --no-button "Disable" --yesno "Enable or disable the ePaper driver" 10 60) then
if (whiptail --title "ePaper Driver" --yes-button "Enable" --no-button "Disable" --yesno "Enable or disable the ePaper driver" 10 60) then
update-rc.d epd-fuse enable
service epd-fuse start
else
Expand Down

0 comments on commit 58ccf83

Please sign in to comment.