bsdinstall time: Replace dialog with bsddialog
Replace (LGPL) dialog utility with (BSD-2-Clause) bsddialog utility, 'dialog --calendar' is replaced by 'bsddialog --datebox' with same features but different User Interface. Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D34583
This commit is contained in:
parent
6e1f7b9b38
commit
0e5c72c3cc
@ -36,23 +36,23 @@ export TZ
|
||||
|
||||
# Set date
|
||||
exec 3>&1
|
||||
DATE=$(dialog --backtitle 'FreeBSD Installer' \
|
||||
--title 'Time & Date' \
|
||||
DATE=$(bsddialog --backtitle 'FreeBSD Installer' \
|
||||
--title ' Date ' \
|
||||
--ok-label 'Set Date' \
|
||||
--cancel-label 'Skip' \
|
||||
--defaultno \
|
||||
--default-no \
|
||||
--date-format '%Y%m%d%H%M.%S' \
|
||||
--calendar '' 0 40 \
|
||||
--datebox '' 0 40 \
|
||||
2>&1 1>&3) && date $DATE
|
||||
exec 3>&-
|
||||
|
||||
# Set time
|
||||
exec 3>&1
|
||||
TIME=$(dialog --backtitle 'FreeBSD Installer' \
|
||||
--title 'Time & Date' \
|
||||
TIME=$(bsddialog --backtitle 'FreeBSD Installer' \
|
||||
--title ' Time ' \
|
||||
--ok-label 'Set Time' \
|
||||
--cancel-label 'Skip' \
|
||||
--defaultno \
|
||||
--default-no \
|
||||
--time-format '%H%M.%S' \
|
||||
--timebox '' 0 40 \
|
||||
2>&1 1>&3) && date $TIME
|
||||
|
Loading…
Reference in New Issue
Block a user