mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 10:42:54 +01:00
[feat] Add option to set up only network on an iso
This commit is contained in:
@@ -1377,6 +1377,45 @@ minio_generate_keys() {
|
||||
|
||||
}
|
||||
|
||||
network_init() {
|
||||
case "$setup_type" in
|
||||
'iso')
|
||||
whiptail_set_hostname
|
||||
whiptail_management_nic
|
||||
whiptail_dhcp_or_static
|
||||
|
||||
if [ "$address_type" != 'DHCP' ]; then
|
||||
whiptail_management_interface_ip
|
||||
whiptail_management_interface_mask
|
||||
whiptail_management_interface_gateway
|
||||
whiptail_management_interface_dns
|
||||
whiptail_management_interface_dns_search
|
||||
fi
|
||||
;;
|
||||
'network')
|
||||
whiptail_network_notice
|
||||
whiptail_dhcp_warn
|
||||
whiptail_set_hostname
|
||||
whiptail_management_nic
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ $is_minion ]]; then
|
||||
whiptail_management_server
|
||||
fi
|
||||
|
||||
if [[ $is_minion || $is_iso ]]; then
|
||||
whiptail_management_interface_setup
|
||||
fi
|
||||
|
||||
# Init networking so rest of install works
|
||||
disable_ipv6
|
||||
set_hostname
|
||||
if [[ "$setup_type" == 'iso' ]]; then
|
||||
set_management_interface
|
||||
fi
|
||||
}
|
||||
|
||||
network_setup() {
|
||||
{
|
||||
echo "Finishing up network setup";
|
||||
|
||||
Reference in New Issue
Block a user