diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2020-11-18 18:12:25 +0000 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2021-02-27 23:47:58 -0600 |
commit | 75fd4729ec786c1d538b4c8a73c69477539950bc (patch) | |
tree | f548a26d43079e7373180802ad5622e856ec3a62 /netconfig | |
parent | 28df69f8ef2c29a6c2da5e37cf8c26b520101407 (diff) | |
download | slacknetsetup-75fd4729ec786c1d538b4c8a73c69477539950bc.tar.xz |
Use an ipv4 specific bounce file for gateway config.
Diffstat (limited to 'netconfig')
-rw-r--r-- | netconfig | 21 |
1 files changed, 6 insertions, 15 deletions
@@ -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`" |