mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
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:
parent
0a823cb491
commit
9b4eb8df71
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user