Create dialogrc if one doesn't already exist
This commit is contained in:
parent
b6116a651d
commit
d501055760
94
installer
94
installer
@ -3316,6 +3316,99 @@ umount_dir()
|
||||
done
|
||||
}
|
||||
|
||||
dialog_cfg()
|
||||
{
|
||||
[[ -f /etc/dialogrc ]] && return
|
||||
cat > /etc/dialogrc <<- EOF
|
||||
#
|
||||
# Run-time configuration file for dialog
|
||||
#
|
||||
# Types of values:
|
||||
#
|
||||
# Number - <number>
|
||||
# String - "string"
|
||||
# Boolean - <ON|OFF>
|
||||
# Attribute - (foreground,background,highlight?)
|
||||
|
||||
aspect = 25
|
||||
|
||||
separate_widget = ""
|
||||
|
||||
tab_len = 0
|
||||
|
||||
visit_items = OFF
|
||||
|
||||
use_shadow = ON
|
||||
use_colors = ON
|
||||
|
||||
screen_color = (CYAN,BLACK,ON)
|
||||
|
||||
shadow_color = (BLACK,BLACK,ON)
|
||||
|
||||
dialog_color = (WHITE,BLACK,ON)
|
||||
|
||||
title_color = (RED,BLACK,ON)
|
||||
|
||||
border_color = (WHITE,BLACK,ON)
|
||||
border2_color = border_color
|
||||
|
||||
button_active_color = (BLACK,WHITE,ON)
|
||||
button_inactive_color = (WHITE,BLACK,ON)
|
||||
|
||||
button_key_active_color = (BLACK,WHITE,ON)
|
||||
button_key_inactive_color = (RED,BLACK,ON)
|
||||
|
||||
button_label_active_color = (BLACK,WHITE,ON)
|
||||
button_label_inactive_color = (WHITE,BLACK,ON)
|
||||
|
||||
inputbox_color = (WHITE,BLACK,ON)
|
||||
|
||||
inputbox_border_color = (WHITE,BLACK,ON)
|
||||
inputbox_border2_color = inputbox_border_color
|
||||
|
||||
searchbox_color = (WHITE,BLACK,ON)
|
||||
searchbox_title_color = (RED,BLACK,ON)
|
||||
|
||||
searchbox_border_color = (WHITE,BLACK,ON)
|
||||
searchbox_border2_color = searchbox_border_color
|
||||
|
||||
position_indicator_color = (GREEN,BLACK,ON)
|
||||
|
||||
menubox_color = (WHITE,BLACK,ON)
|
||||
|
||||
gauge_color = (WHITE,BLACK,ON)
|
||||
|
||||
menubox_border_color = (WHITE,BLACK,ON)
|
||||
menubox_border2_color = menubox_border_color
|
||||
|
||||
item_color = (WHITE,BLACK,ON)
|
||||
item_selected_color = (BLACK,WHITE,ON)
|
||||
|
||||
tag_color = (WHITE,BLACK,ON)
|
||||
tag_selected_color = (BLACK,WHITE,ON)
|
||||
|
||||
tag_key_color = (RED,BLACK,ON)
|
||||
tag_key_selected_color = (BLACK,WHITE,ON)
|
||||
|
||||
check_color = (WHITE,BLACK,ON)
|
||||
check_selected_color = (BLACK,WHITE,ON)
|
||||
|
||||
uarrow_color = (GREEN,BLACK,ON)
|
||||
darrow_color = (GREEN,BLACK,ON)
|
||||
|
||||
itemhelp_color = (BLACK,WHITE,ON)
|
||||
|
||||
form_text_color = (WHITE,BLACK,ON)
|
||||
form_active_text_color = (BLACK,WHITE,ON)
|
||||
form_item_readonly_color = (WHITE,BLACK,ON)
|
||||
|
||||
bindkey formfield TAB form_NEXT
|
||||
bindkey formbox TAB form_NEXT
|
||||
bindkey formfield BTAB form_prev
|
||||
bindkey formbox BTAB form_prev
|
||||
EOF
|
||||
}
|
||||
|
||||
chk_connect()
|
||||
{
|
||||
if [[ ! -f /tmp/new ]]; then
|
||||
@ -3406,6 +3499,7 @@ system_identify()
|
||||
# entry point
|
||||
|
||||
termcol
|
||||
dialog_cfg
|
||||
|
||||
MISSING=""
|
||||
for i in dialog find parted curl arch-chroot; do
|
||||
|
Reference in New Issue
Block a user