summaryrefslogtreecommitdiffstats
path: root/netconfig
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2020-11-18 18:12:25 +0000
committerRobby Workman <rworkman@slackware.com>2021-02-27 23:47:58 -0600
commit75fd4729ec786c1d538b4c8a73c69477539950bc (patch)
treef548a26d43079e7373180802ad5622e856ec3a62 /netconfig
parent28df69f8ef2c29a6c2da5e37cf8c26b520101407 (diff)
downloadslacknetsetup-75fd4729ec786c1d538b4c8a73c69477539950bc.tar.xz
Use an ipv4 specific bounce file for gateway config.
Diffstat (limited to 'netconfig')
-rw-r--r--netconfig21
1 files changed, 6 insertions, 15 deletions
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`"