From ea10f0a2d8ee8c096e8c0f92f444916e38455eab Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sun, 15 Sep 2019 17:52:21 -0400 Subject: [PATCH] Change test to $version -lt 10. --- installers/common.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index 3aabb02..f9d5f0b 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -195,7 +195,7 @@ function move_config_file() { # select iptables or nftables function network_tables() { - if [ ! -f /usr/sbin/iptables-nft ]; then + if [ $version -lt 10 ]; then tablerouteA='iptables -t nat -A POSTROUTING -s 10.3.141.0\/24 -o lokitun0 -j MASQUERADE #RASPAP' tablerouteB='iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP' fi @@ -231,8 +231,6 @@ function default_configuration() { lines=( 'echo 1 > \/proc\/sys\/net\/ipv4\/ip_forward #RASPAP' - #'iptables -t nat -A POSTROUTING -s 10.3.141.0\/24 -o lokitun0 -j MASQUERADE #RASPAP' - #'iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP' "$tablerouteA" "$tablerouteB" 'sudo \/var\/lib\/lokinet\/.\/lokilaunch.sh start #RASPAP'