From 75fd4729ec786c1d538b4c8a73c69477539950bc Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Wed, 18 Nov 2020 18:12:25 +0000 Subject: Use an ipv4 specific bounce file for gateway config. --- netconfig | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'netconfig') diff --git a/netconfig b/netconfig index 5d4ac5b..96daef5 100644 --- a/netconfig +++ b/netconfig @@ -693,34 +693,25 @@ Valid net masks will be in the range 1-32." 6 65 If you don't have an IPv4 gateway on your network leave it blank or select 'Skip'. -Enter IPv4 gateway address:" 14 68 "$GATEWAY" 2> $TMP/SeTgate4 +Enter IPv4 gateway address:" 14 68 "$GATEWAY" 2> $TMP/SeTgateway4 if [ $? = 1 -o $? = 255 ]; then - rm -f $TMP/SeTgate4 + rm -f $TMP/SeTgateway4 exit fi - GATEWAY="`cat $TMP/SeTgate4`" - rm -f $TMP/SeTgate4 + GATEWAY="`cat $TMP/SeTgateway4`" + rm -f $TMP/SeTgateway4 if [ "$GATEWAY" = "" ]; then - echo > $TMP/SeTgateway4 + #echo > $TMP/SeTgateway4 break - else - echo "$GATEWAY" >$TMP/SeTgateway4 fi syntax_check_v4 "$GATEWAY" 4 WARN if [ $? = 0 ]; then - echo $GATEWAY > $TMP/SeTgateway4 break fi done + rm -f $TMP/SeTgateway4 fi - - - - - - - while [ 0 ]; do if [ -r $TMP/SeTIP6 ]; then IPADDR6="`cat $TMP/SeTIP6`" -- cgit v1.2.3