From 6f3e85bf882ba7aecd823707b21631af3bc7aae8 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Fri, 27 Nov 2020 17:06:51 +0000 Subject: Add IPv6 support to 'loopback' option. Use IPADDRS. --- netconfig | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/netconfig b/netconfig index 71b267b..03dc459 100644 --- a/netconfig +++ b/netconfig @@ -636,6 +636,7 @@ else fi if [ "$LOOPBACK" = "no" -a ! "$USE_DHCP" = "yes" -a ! "$USE_SLAAC" = "yes" ]; then +# FIXME: need to check the logic in these: while [ 0 ]; do while [ 0 ]; do if [ -r $TMP/SeTIPSv4 ]; then @@ -962,12 +963,15 @@ if [ "$LOOPBACK" = "yes" -a ! "$NETWORKMANAGER" = "yes" ]; then dialog --title "NETWORK SETUP COMPLETE" --yesno "Your networking \ system is now configured to use loopback: -IP address: 127.0.0.1 -Netmask: 255.255.255.0 +IP addresses: 127.0.0.1/8 ::1/128 -Is this correct? Press 'Yes' to continue, or 'No' to reconfigure." 10 70 +Is this correct? Press 'Yes' to continue, or 'No' to reconfigure." 9 70 RETVAL=$? -# FIXME: Need to actually set IPADDRS=127.0.0.1/8 here + if [ "$RETVAL" = "255" ]; then + exit + fi + IPADDRS=( 127.0.0.1/8 ) + IP6ADDRS=( ::1/128 ) elif [ "$LOOPBACK" = "yes" -a "$NETWORKMANAGER" = "yes" ]; then dialog --title "NETWORK SETUP COMPLETE" --yesno "Your networking \ system is now configured to use NetworkManager for -- cgit v1.2.3