changed default value for NAT_INTERFACE_ from none to ""
authorMichael Gebetsroither <michael.geb@gmx.at>
Sat, 17 Mar 2007 18:45:55 +0000 (19:45 +0100)
committerMichael Gebetsroither <michael.geb@gmx.at>
Sat, 17 Mar 2007 18:45:55 +0000 (19:45 +0100)
grml-terminalserver
grml-terminalserver-config

index fd4abcb..bf01665 100755 (executable)
@@ -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
index 61cd056..770b95e 100755 (executable)
@@ -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