From 06402e79035267481cb32eb4418930ae96be0881 Mon Sep 17 00:00:00 2001 From: Michael Gebetsroither Date: Sat, 17 Mar 2007 19:45:55 +0100 Subject: [PATCH] changed default value for NAT_INTERFACE_ from none to "" --- grml-terminalserver | 4 +++- grml-terminalserver-config | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/grml-terminalserver b/grml-terminalserver index fd4abcb..bf01665 100755 --- a/grml-terminalserver +++ b/grml-terminalserver @@ -131,11 +131,13 @@ function runDhcp sleep 1 startDhcp } +# }}} +# IPTABLES {{{ function runIptables { if [ -x /sbin/iptables ] ; then - if [[ "$NAT_INTERFACE_" != "none" ]]; then + if [[ $NAT_INTERFACE_ != "" ]]; then local nat_source_ip_=`netGetIp "$NAT_INTERFACE_" warn` if iptables -t nat -vnL POSTROUTING | grep -q "SNAT.*${NAT_INTERFACE_}.*to:${nat_source_ip_}" ; then diff --git a/grml-terminalserver-config b/grml-terminalserver-config index 61cd056..770b95e 100755 --- a/grml-terminalserver-config +++ b/grml-terminalserver-config @@ -38,7 +38,7 @@ IPRANGE_TO_="" NETWORK_="" OPTIONS_="" BOOT_ARGS_="" -NAT_INTERFACE_="none" +NAT_INTERFACE_="" ### @@ -331,8 +331,8 @@ the internet?" NAT_INTERFACE_="$GW_DEV_" else # no NAT, no sensible gateway - GW_= - NAT_INTERFACE_="none" + GW_="" + NAT_INTERFACE_="" fi fi -- 2.1.4