bsdinstall: change branding

This commit is contained in:
Franco Fichtner 2021-04-19 12:51:23 +02:00
parent 0b3450c723
commit 83a7857f6b
23 changed files with 51 additions and 51 deletions

View File

@ -71,7 +71,7 @@ main(void)
size_t span;
struct dpv_config *config;
struct dpv_file_node *dist = dists;
static char backtitle[] = "HardenedBSD Installer";
static char backtitle[] = "OPNsense Installer";
static char title[] = "Archive Extraction";
static char aprompt[] = "\n Overall Progress:";
static char pprompt[] = "Extracting distribution files...\n";

View File

@ -69,7 +69,7 @@ main(void)
}
init_dialog(stdin, stdout);
dialog_vars.backtitle = __DECONST(char *, "HardenedBSD Installer");
dialog_vars.backtitle = __DECONST(char *, "OPNsense Installer");
dlg_put_backtitle();
for (i = 0; i < ndists; i++) {

View File

@ -89,7 +89,7 @@ main(int argc, const char **argv)
init_dialog(stdin, stdout);
if (!sade_mode)
dialog_vars.backtitle = __DECONST(char *, "HardenedBSD Installer");
dialog_vars.backtitle = __DECONST(char *, "OPNsense Installer");
dialog_vars.item_help = TRUE;
nscroll = i = 0;

View File

@ -27,8 +27,8 @@
# $FreeBSD$
clear
echo "HardenedBSD Installer"
echo "========================"
echo "OPNsense Installer"
echo "=================="
echo "Add Users"
echo
chroot $BSDINSTALL_CHROOT adduser 2>&1

View File

@ -42,7 +42,7 @@ error() {
fi
test -n "$DISTDIR_IS_UNIONFS" && umount -f $BSDINSTALL_DISTDIR
test -f $PATH_FSTAB && bsdinstall umount
dialog --backtitle "HardenedBSD Installer" --title "Abort" \
dialog --backtitle "OPNsense Installer" --title "Abort" \
--no-label "Exit" --yes-label "Restart" --yesno \
"${msg}An installation step has been aborted. Would you like to restart the installation or exit the installer?" 0 0
if [ $? -ne 0 ]; then
@ -120,7 +120,7 @@ if [ -f $BSDINSTALL_DISTDIR/MANIFEST ]; then
exec 3>&1
EXTRA_DISTS=$( eval dialog \
--backtitle \"HardenedBSD Installer\" \
--backtitle \"OPNsense Installer\" \
--title \"Distribution Select\" --nocancel --separate-output \
--checklist \"Choose optional system components to install:\" \
0 0 0 $DISTMENU \
@ -143,7 +143,7 @@ LOCAL_DISTRIBUTIONS=`echo $LOCAL_DISTRIBUTIONS` # Trim white space
FETCH_DISTRIBUTIONS=`echo $FETCH_DISTRIBUTIONS` # Trim white space
if [ -n "$FETCH_DISTRIBUTIONS" -a -n "$BSDINSTALL_CONFIGCURRENT" ]; then
dialog --backtitle "HardenedBSD Installer" --title "Network Installation" --msgbox "Some installation files were not found on the boot volume. The next few screens will allow you to configure networking so that they can be downloaded from the Internet." 0 0
dialog --backtitle "OPNsense Installer" --title "Network Installation" --msgbox "Some installation files were not found on the boot volume. The next few screens will allow you to configure networking so that they can be downloaded from the Internet." 0 0
bsdinstall netconfig || error
NETCONFIG_DONE=yes
fi
@ -268,7 +268,7 @@ case $CURARCH in
esac
exec 3>&1
PARTMODE=`echo $PMODES | xargs dialog --backtitle "HardenedBSD Installer" \
PARTMODE=`echo $PMODES | xargs dialog --backtitle "OPNsense Installer" \
--title "Partitioning" \
--menu "How would you like to partition your disk?" \
0 0 0 2>&1 1>&3` || exit 1
@ -391,13 +391,13 @@ bsdinstall time
bsdinstall services
bsdinstall hardening
dialog --backtitle "HardenedBSD Installer" --title "Add User Accounts" --yesno \
dialog --backtitle "OPNsense Installer" --title "Add User Accounts" --yesno \
"Would you like to add users to the installed system now?" 0 0 && \
bsdinstall adduser
finalconfig() {
exec 3>&1
REVISIT=$(dialog --backtitle "HardenedBSD Installer" \
REVISIT=$(dialog --backtitle "OPNsense Installer" \
--title "Final Configuration" --no-cancel --menu \
"Setup of your HardenedBSD system is nearly complete. You can now modify your configuration choices. After this screen, you will have an opportunity to make more complex changes using a shell." 0 0 0 \
"Exit" "Apply configuration and exit installer" \
@ -461,7 +461,7 @@ if [ ! -z "$BSDINSTALL_FETCHDEST" ]; then
rm -rf "$BSDINSTALL_FETCHDEST"
fi
dialog --backtitle "HardenedBSD Installer" --title "Manual Configuration" \
dialog --backtitle "OPNsense Installer" --title "Manual Configuration" \
--default-button no --yesno \
"The installation is now finished. Before exiting the installer, would you like to open a shell in the new system to make any final manual modifications?" 0 0
if [ $? -eq 0 ]; then

View File

@ -37,7 +37,7 @@ for dist in $DISTRIBUTIONS; do
for i in $DISTRIBUTIONS; do
items="$items $i `eval echo \\\${status_$(basename $i .txz):-Pending}`"
done
dialog --backtitle "HardenedBSD Installer" --title "Checksum Verification" \
dialog --backtitle "OPNsense Installer" --title "Checksum Verification" \
--mixedgauge "Verifying checksums of selected distributions." \
0 0 $percentage $items
@ -64,11 +64,11 @@ for dist in $DISTRIBUTIONS; do
eval "status_$distname=1"
case $(/bin/freebsd-version -u) in
*-ALPHA*|*-CURRENT|*-STABLE|*-PRERELEASE)
dialog --backtitle "HardenedBSD Installer" --title "Error" \
dialog --backtitle "OPNsense Installer" --title "Error" \
--msgbox "The checksum for $dist does not match. It may have become corrupted, or it may be from a newer version of HardenedBSD. Please check for a newer snapshot." 0 0
;;
*)
dialog --backtitle "HardenedBSD Installer" --title "Error" \
dialog --backtitle "OPNsense Installer" --title "Error" \
--msgbox "The checksum for $dist does not match. It may have become corrupted, and should be redownloaded." 0 0
;;
esac

View File

@ -61,7 +61,7 @@ msg_endoc_desc="English Documentation (recommended)"
msg_esdoc_desc="Spanish Documentation"
msg_frdoc_desc="French Documentation"
msg_freebsd_documentation_installation="FreeBSD Documentation Installation"
msg_freebsd_installer="HardenedBSD Installer"
msg_freebsd_installer="OPNsense Installer"
msg_hudoc_desc="Hungarian Documentation"
msg_itdoc_desc="Italian Documentation"
msg_jadoc_desc="Japanese Documentation"

View File

@ -53,7 +53,7 @@ if [ `sysctl -n security.bsd.stack_guard_page` -gt 0 ]; then
fi
exec 3>&1
FEATURES=$( dialog --backtitle "HardenedBSD Installer" \
FEATURES=$( dialog --backtitle "OPNsense Installer" \
--title "System Hardening" --nocancel --separate-output \
--checklist "Choose system security hardening options:" \
0 0 0 \

View File

@ -35,7 +35,7 @@
: ${DIALOG_ESC=255}
exec 3>&1
HOSTNAME=`dialog --backtitle 'HardenedBSD Installer' --title 'Set Hostname' --nocancel --inputbox \
HOSTNAME=`dialog --backtitle 'OPNsense Installer' --title 'Set Hostname' --nocancel --inputbox \
'Please choose a hostname for this machine.
If you are running on a managed network, please ask your network administrator for an appropriate name.' \

View File

@ -42,7 +42,7 @@ error() {
if [ -n "$1" ]; then
msg="$1\n\n"
fi
dialog --backtitle "HardenedBSD Installer" --title "Abort" \
dialog --backtitle "OPNsense Installer" --title "Abort" \
--no-label "Exit" --yes-label "Restart" --yesno \
"${msg}An installation step has been aborted. Would you like to restart the installation or exit the installer?" 0 0
if [ $? -ne 0 ]; then
@ -75,7 +75,7 @@ if [ -f $BSDINSTALL_DISTDIR/MANIFEST ]; then
exec 3>&1
EXTRA_DISTS=$(echo $DISTMENU | xargs dialog \
--backtitle "HardenedBSD Installer" \
--backtitle "OPNsense Installer" \
--title "Distribution Select" --nocancel --separate-output \
--checklist "Choose optional system components to install:" \
0 0 0 \
@ -113,7 +113,7 @@ bsdinstall rootpass || error "Could not set root password"
trap true SIGINT # This section is optional
bsdinstall services
dialog --backtitle "HardenedBSD Installer" --title "Add User Accounts" --yesno \
dialog --backtitle "OPNsense Installer" --title "Add User Accounts" --yesno \
"Would you like to add users to the installed system now?" 0 0 && \
bsdinstall adduser

View File

@ -52,7 +52,7 @@ hline_arrows_tab_enter="Press arrows, TAB or ENTER"
msg_continue_with_keymap="Continue with %s keymap"
msg_default="default"
msg_error="Error"
msg_freebsd_installer="HardenedBSD Installer"
msg_freebsd_installer="OPNsense Installer"
msg_keymap_menu_text="The system console driver for HardenedBSD defaults to\nstandard \"US\" keyboard map. Other keymaps can be chosen below."
msg_keymap_selection="Keymap Selection"
msg_ok="OK"

View File

@ -42,7 +42,7 @@ DEVEL|PLAYGROUND)
_BUILD_NUMBER=`echo ${_HBSD_VERSION} | cut -d ':' -f 3`
exec 3>&1
MIRROR=`dialog --backtitle "HardenedBSD Installer" \
MIRROR=`dialog --backtitle "OPNsense Installer" \
--title "Mirror Selection - development and experimental version" \
--extra-button --extra-label "Other" \
--menu "Please select the site closest to you or \"other\" if you'd like to specify a different choice. Also note that not every site listed here carries more than the base distribution kits. Only Primary sites are guaranteed to carry the full range of possible distributions. Select a site that's close!" \
@ -60,7 +60,7 @@ DEVEL|PLAYGROUND)
_mirror_prefix="installer"
exec 3>&1
MIRROR=`dialog --backtitle "HardenedBSD Installer" \
MIRROR=`dialog --backtitle "OPNsense Installer" \
--title "Mirror Selection - HardenedBSD-stable ${_BUILD_TAG}" \
--extra-button --extra-label "Other" \
--menu "Please select the site closest to you or \"other\" if you'd like to specify a different choice. Also note that not every site listed here carries more than the base distribution kits. Only Primary sites are guaranteed to carry the full range of possible distributions. Select a site that's close!" \
@ -93,7 +93,7 @@ DEVEL|PLAYGROUND)
esac
exec 3>&1
MIRROR=`dialog --backtitle "HardenedBSD Installer" \
MIRROR=`dialog --backtitle "OPNsense Installer" \
--title "Mirror Selection - Latest HardenedBSD-stable" \
--extra-button --extra-label "Other" \
--menu "Please select the site closest to you or \"other\" if you'd like to specify a different choice. Also note that not every site listed here carries more than the base distribution kits. Only Primary sites are guaranteed to carry the full range of possible distributions. Select a site that's close!" \
@ -120,7 +120,7 @@ $DIALOG_OK)
;;
$DIALOG_EXTRA)
exec 3>&1
BSDINSTALL_DISTSITE=`dialog --backtitle "HardenedBSD Installer" \
BSDINSTALL_DISTSITE=`dialog --backtitle "OPNsense Installer" \
--title "Mirror Selection" \
--inputbox "Please enter the URL to an alternate HardenedBSD mirror:" \
0 0 "$BSDINSTALL_DISTSITE" 2>&1 1>&3`

View File

@ -44,7 +44,7 @@ for i in $FILESYSTEMS; do
mkdir -p $i 2>/dev/null
MNTERROR=`mount -F $TMP_FSTAB $i 2>&1`
if [ $? -ne 0 ]; then
dialog --backtitle "HardenedBSD Installer" --title "Error" \
dialog --backtitle "OPNsense Installer" --title "Error" \
--msgbox "Error mounting partition $i:\n$MNTERROR" 0 0
exit 1
fi

View File

@ -63,14 +63,14 @@ for IF in $INTERFACES; do
done
if [ -z "$INTERFACES" ]; then
dialog --backtitle 'HardenedBSD Installer' \
dialog --backtitle 'OPNsense Installer' \
--title 'Network Configuration Error' \
--msgbox 'No network interfaces present to configure.' 0 0
exit 1
fi
exec 3>&1
INTERFACE=`echo $DIALOG_TAGS | xargs dialog --backtitle 'HardenedBSD Installer' --title 'Network Configuration' --menu 'Please select a network interface to configure:' 0 0 0 2>&1 1>&3`
INTERFACE=`echo $DIALOG_TAGS | xargs dialog --backtitle 'OPNsense Installer' --title 'Network Configuration' --menu 'Please select a network interface to configure:' 0 0 0 2>&1 1>&3`
if [ $? -eq $DIALOG_CANCEL ]; then exit 1; fi
exec 3>&-
@ -101,7 +101,7 @@ case $? in
esac
if [ ${IPV4_AVAIL} -eq 1 ]; then
dialog --backtitle 'HardenedBSD Installer' --title 'Network Configuration' \
dialog --backtitle 'OPNsense Installer' --title 'Network Configuration' \
--yesno 'Would you like to configure IPv4 for this interface?' 0 0
if [ $? -eq $DIALOG_OK ]; then
bsdinstall netconfig_ipv4 ${INTERFACE} "${IFCONFIG_PREFIX}" || \
@ -116,7 +116,7 @@ if [ ${IPV4_AVAIL} -eq 0 -a -n ${IFCONFIG_PREFIX} ]; then
echo ifconfig_${INTERFACE}=\"${IFCONFIG_PREFIX}\" >> $BSDINSTALL_TMPETC/._rc.conf.net
fi
if [ ${IPV6_AVAIL} -eq 1 ]; then
dialog --backtitle 'HardenedBSD Installer' --title 'Network Configuration' \
dialog --backtitle 'OPNsense Installer' --title 'Network Configuration' \
--yesno 'Would you like to configure IPv6 for this interface?' 0 0
if [ $? -eq $DIALOG_OK ]; then
bsdinstall netconfig_ipv6 ${INTERFACE} || exec $0
@ -181,7 +181,7 @@ else
fi
exec 3>&1
RESOLV=$(echo "${RESOLV}" | xargs dialog --backtitle 'HardenedBSD Installer' \
RESOLV=$(echo "${RESOLV}" | xargs dialog --backtitle 'OPNsense Installer' \
--title 'Network Configuration' \
--mixedform 'Resolver Configuration' 0 0 0 \
2>&1 1>&3)

View File

@ -40,20 +40,20 @@ INTERFACE=$1
IFCONFIG_PREFIX="$2"
test -z "$IFCONFIG_PREFIX" || IFCONFIG_PREFIX="$2 "
case "${INTERFACE}" in
"") dialog --backtitle 'HardenedBSD Installer' --title 'Network Configuration' \
"") dialog --backtitle 'OPNsense Installer' --title 'Network Configuration' \
--msgbox 'No interface specified for IPv4 configuration.' 0 0
exit 1
;;
esac
dialog --backtitle 'HardenedBSD Installer' --title 'Network Configuration' --yesno 'Would you like to use DHCP to configure this interface?' 0 0
dialog --backtitle 'OPNsense Installer' --title 'Network Configuration' --yesno 'Would you like to use DHCP to configure this interface?' 0 0
if [ $? -eq $DIALOG_OK ]; then
if [ ! -z $BSDINSTALL_CONFIGCURRENT ]; then
dialog --backtitle 'HardenedBSD Installer' --infobox "Acquiring DHCP lease..." 0 0
dialog --backtitle 'OPNsense Installer' --infobox "Acquiring DHCP lease..." 0 0
err=$( dhclient $INTERFACE 2>&1 )
if [ $? -ne 0 ]; then
f_dprintf "%s" "$err"
dialog --backtitle 'HardenedBSD Installer' --msgbox "DHCP lease acquisition failed." 0 0
dialog --backtitle 'OPNsense Installer' --msgbox "DHCP lease acquisition failed." 0 0
exec $0 ${INTERFACE} "${IFCONFIG_PREFIX}"
fi
fi
@ -66,7 +66,7 @@ NETMASK=`ifconfig $INTERFACE inet | awk '/inet/ {printf("%s\n", $4); }'`
ROUTER=`netstat -rn -f inet | awk '/default/ {printf("%s\n", $2);}'`
exec 3>&1
IF_CONFIG=$(dialog --backtitle 'HardenedBSD Installer' --title 'Network Configuration' --form 'Static Network Interface Configuration' 0 0 0 \
IF_CONFIG=$(dialog --backtitle 'OPNsense Installer' --title 'Network Configuration' --form 'Static Network Interface Configuration' 0 0 0 \
'IP Address' 1 0 "$IP_ADDRESS" 1 20 16 0 \
'Subnet Mask' 2 0 "$NETMASK" 2 20 16 0 \
'Default Router' 3 0 "$ROUTER" 3 20 16 0 \

View File

@ -47,7 +47,7 @@ f_include $BSDCFG_SHARE/dialog.subr
INTERFACE=$1
case "${INTERFACE}" in
"") dialog --backtitle 'HardenedBSD Installer' --title 'Network Configuration' \
"") dialog --backtitle 'OPNsense Installer' --title 'Network Configuration' \
--msgbox 'No interface specified for IPv6 configuration.' 0 0
exit 1
;;
@ -56,17 +56,17 @@ esac
AGAIN=""
while : ; do
MSG="Would you like to try stateless address autoconfiguration (SLAAC)${AGAIN}?"
dialog --backtitle 'HardenedBSD Installer' --title 'Network Configuration' \
dialog --backtitle 'OPNsense Installer' --title 'Network Configuration' \
--yesno "${MSG}" 0 0
if [ $? -eq $DIALOG_OK ]; then
if [ ! -z $BSDINSTALL_CONFIGCURRENT ]; then
dialog --backtitle 'HardenedBSD Installer' \
dialog --backtitle 'OPNsense Installer' \
--infobox "Sending Router Solicitation ..." 0 0
ifconfig ${INTERFACE} inet6 -ifdisabled accept_rtadv up
err=$( rtsol -F $INTERFACE 2>&1 )
if [ $? -ne 0 ]; then
f_dprintf "%s" "$err"
dialog --backtitle 'HardenedBSD Installer' --msgbox "SLAAC failed." 0 0
dialog --backtitle 'OPNsense Installer' --msgbox "SLAAC failed." 0 0
AGAIN=" again"
continue
fi
@ -106,7 +106,7 @@ END {
}'`
exec 3>&1
IF_CONFIG=$(echo ${ADDRS} | xargs dialog --backtitle 'HardenedBSD Installer' \
IF_CONFIG=$(echo ${ADDRS} | xargs dialog --backtitle 'OPNsense Installer' \
--title 'Network Configuration' \
--mixedform 'Static IPv6 Network Interface Configuration' 0 0 0 \
2>&1 1>&3)

View File

@ -27,8 +27,8 @@
# $FreeBSD$
clear
echo "HardenedBSD Installer"
echo "========================"
echo "OPNsense Installer"
echo "=================="
echo
echo "Please select a password for the system management account (root):"

View File

@ -39,7 +39,7 @@ fi
echo -n > $BSDINSTALL_TMPETC/rc.conf.services
exec 3>&1
DAEMONS=$( dialog --backtitle "HardenedBSD Installer" \
DAEMONS=$( dialog --backtitle "OPNsense Installer" \
--title "System Configuration" --nocancel --separate-output \
--checklist "Choose the services you would like to be started at boot:" \
0 0 0 \

View File

@ -39,7 +39,7 @@ fi
echo -n > $BSDINSTALL_TMPETC/rc.conf.services
exec 3>&1
DAEMONS=$( dialog --backtitle "HardenedBSD Installer" \
DAEMONS=$( dialog --backtitle "OPNsense Installer" \
--title "System Configuration" --nocancel --separate-output \
--checklist "Choose the services you would like to be started at boot:" \
0 0 0 \

View File

@ -39,7 +39,7 @@ fi
echo -n > $BSDINSTALL_TMPETC/rc.conf.services
exec 3>&1
DAEMONS=$( dialog --backtitle "HardenedBSD Installer" \
DAEMONS=$( dialog --backtitle "OPNsense Installer" \
--title "System Configuration" --nocancel --separate-output \
--checklist "Choose the services you would like to be started at boot:" \
0 0 0 \

View File

@ -36,7 +36,7 @@ export TZ
# Set date
exec 3>&1
DATE=$(dialog --backtitle 'HardenedBSD Installer' \
DATE=$(dialog --backtitle 'OPNsense Installer' \
--title 'Time & Date' \
--ok-label 'Set Date' \
--cancel-label 'Skip' \
@ -48,7 +48,7 @@ exec 3>&-
# Set time
exec 3>&1
TIME=$(dialog --backtitle 'HardenedBSD Installer' \
TIME=$(dialog --backtitle 'OPNsense Installer' \
--title 'Time & Date' \
--ok-label 'Set Time' \
--cancel-label 'Skip' \

View File

@ -32,7 +32,7 @@
BSDCFG_SHARE="/usr/share/bsdconfig"
. $BSDCFG_SHARE/common.subr || exit 1
f_include $BSDCFG_SHARE/dialog.subr
f_dialog_backtitle "HardenedBSD Installer"
f_dialog_backtitle "OPNsense Installer"
############################################################ FUNCTIONS

View File

@ -253,7 +253,7 @@ msg_encrypt_disks_help="Use geli(8) to encrypt all data partitions"
msg_error="Error"
msg_force_4k_sectors="Force 4K Sectors?"
msg_force_4k_sectors_help="Align partitions to 4K sector boundries and set vfs.zfs.min_auto_ashift=12"
msg_freebsd_installer="HardenedBSD Installer"
msg_freebsd_installer="OPNsense Installer"
msg_geli_password="Enter a strong passphrase, used to protect your encryption keys. You will be required to enter this passphrase each time the system is booted"
msg_geli_setup="Initializing encryption on selected disks,\n this will take several seconds per disk"
msg_install="Install"