config-gui.sh: Reword USB keyboard notice, show on enable only

Reword the notice shown when enabling USB keyboards based on feedback.
Remove the notice when disabling USB keyboard support, show it only
when enabling.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2024-01-31 09:58:35 -05:00
parent 0a823cb491
commit 9b4eb8df71
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -528,7 +528,7 @@ while true; do
if [ "$CONFIG_USER_USB_KEYBOARD" != "y" ]; then
if (whiptail --title 'Enable USB Keyboard?' \
--yesno "USB keyboards will be usable in $CONFIG_BRAND_NAME.
\n\nIgnoring USB keyboards prevents a compromised USB device from controlling
\n\nEnabling USB keyboards could allow a compromised USB device to control
\n$CONFIG_BRAND_NAME.
\n\nDo you want to proceed?" 0 80) then
@ -541,8 +541,6 @@ while true; do
else
if (whiptail --title 'Disable USB Keyboard?' \
--yesno "Only the built-in keyboard will be usable in $CONFIG_BRAND_NAME.
\n\nIgnoring USB keyboards prevents a compromised USB device from controlling
\n$CONFIG_BRAND_NAME.
\n\nDo you want to proceed?" 0 80) then
set_user_config "CONFIG_USER_USB_KEYBOARD" "n"