Include Raspberry Pi model as backtitle

Fixes #56
This commit is contained in:
Serge Schneider
2017-07-11 12:21:15 +01:00
parent e1e3b3cf0f
commit bb605a2dd9
2 changed files with 7 additions and 1 deletions

View File

@@ -1623,7 +1623,7 @@ if [ "$INTERACTIVE" = True ]; then
calc_wt_size
while true; do
if is_pi ; then
FUN=$(whiptail --title "Raspberry Pi Software Configuration Tool (raspi-config)" --menu "Setup Options" $WT_HEIGHT $WT_WIDTH $WT_MENU_HEIGHT --cancel-button Finish --ok-button Select \
FUN=$(whiptail --title "Raspberry Pi Software Configuration Tool (raspi-config)" --backtitle "$(cat /proc/device-tree/model)" --menu "Setup Options" $WT_HEIGHT $WT_WIDTH $WT_MENU_HEIGHT --cancel-button Finish --ok-button Select \
"1 Change User Password" "Change password for the default user (pi)" \
"2 Hostname" "Set the visible name for this Pi on a network" \
"3 Boot Options" "Configure options for start-up" \