Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108991554
D35285.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D35285.diff
View Options
diff --git a/usr.sbin/bsdinstall/scripts/hostname b/usr.sbin/bsdinstall/scripts/hostname
--- a/usr.sbin/bsdinstall/scripts/hostname
+++ b/usr.sbin/bsdinstall/scripts/hostname
@@ -48,6 +48,8 @@
############################################################ GLOBALS
+: ${BSDDIALOG_CANCEL=1}
+
#
# Strings that should be moved to an i18n file and loaded with f_include_lang()
#
@@ -71,21 +73,17 @@
dialog_hostname()
{
local prompt="$msg_please_choose_a_hostname"
- local hline=
+ local hline="Use TAB and Enter to select $msg_ok"
local value="$*"
- local height width
- f_dialog_inputbox_size height width \
- "$DIALOG_TITLE" "$DIALOG_BACKTITLE" "$prompt" "$value" "$hline"
-
- $DIALOG \
+ bsddialog \
--title "$DIALOG_TITLE" \
--backtitle "$DIALOG_BACKTITLE" \
--hline "$hline" \
--ok-label "$msg_ok" \
--no-cancel \
--inputbox "$prompt" \
- $height $width "$value" \
+ 0 56 "$value" \
2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD
}
@@ -101,7 +99,7 @@
# Get user input
#
HOSTNAME=$( dialog_hostname "$HOSTNAME" )
-[ $? -eq $DIALOG_CANCEL ] && exit 1
+[ $? -eq $BSDDIALOG_CANCEL ] && exit 1
#
# Store the user's choice
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 31, 9:21 AM (13 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16359642
Default Alt Text
D35285.diff (1 KB)
Attached To
Mode
D35285: bsdinstall hostname: Replace dialog(1) with bsddialog(1)
Attached
Detach File
Event Timeline
Log In to Comment