Commit f47a417f authored by Ophélie Gagnard's avatar Ophélie Gagnard Committed by Ophélie Gagnard

generation/get-information.sh: Display default netmask.

parent ab51fd6f
......@@ -103,9 +103,9 @@ int_to_generic_netmask () {
DEFAULT_INTERFACE=$(get_default_interface)
DEFAULT_ROUTER=$(get_default_router)
DEFAULT_IP=$(get_default_ip)
default_netmask=$(get_default_netmask)
default_netmask_number=$(echo -e "${default_netmask}" | awk -F / '{print $2}')
FORMATTED_NETMASK=$(int_to_generic_netmask "${default_netmask_number}")
DEFAULT_NETMASK=$(get_default_netmask)
DEFAULT_NETMASK_NUMBER=$(echo -e "${DEFAULT_NETMASK}" | awk -F / '{print $2}')
FORMATTED_NETMASK=$(int_to_generic_netmask "${DEFAULT_NETMASK_NUMBER}")
TARGET_HOSTNAME=$(hostname)
# Get information about the partition layout
......@@ -114,6 +114,8 @@ efi_partition_type="EFI System"
EFI_PARTITION_MOUNT_POINT=$(get_partition_path "$efi_partition_type")
ROOT_PARTITION_ID=$(get_partition_id "$root_partition_type")
echo "export DEFAULT_NETMASK=\"$DEFAULT_NETMASK\""
echo "export DEFAULT_NETMASK_NUMBER=\"$DEFAULT_NETMASK_NUMBER\""
echo "export DEFAULT_INTERFACE=\"$DEFAULT_INTERFACE\""
echo "export DEFAULT_ROUTER=\"$DEFAULT_ROUTER\""
echo "export DEFAULT_IP=\"$DEFAULT_IP\""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment