diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2020-11-27 17:06:51 +0000 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2021-02-27 23:47:58 -0600 |
commit | 6f3e85bf882ba7aecd823707b21631af3bc7aae8 (patch) | |
tree | 21baf5bef91c386540c9734e0925a1c14e3ccea2 | |
parent | 6a0079608d35d483d99987f498041d4da798b7d3 (diff) | |
download | slacknetsetup-6f3e85bf882ba7aecd823707b21631af3bc7aae8.tar.xz |
Add IPv6 support to 'loopback' option. Use IPADDRS.
-rw-r--r-- | netconfig | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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 |