[Ultrapossum-cvs 957] demo/uml 1.11,1.12,uml-run

Back to archive index

Masato Taruishi taru****@users*****
2004年 10月 20日 (水) 00:37:51 JST


===================================================================
RCS file: demo/uml/uml-run,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- demo/uml/uml-run	2004/10/19 15:35:20	1.11
+++ demo/uml/uml-run	2004/10/19 15:37:51	1.12
@@ -30,7 +30,15 @@
   eval `ultrapossum-config term`
   exit 1
 fi
-trap "if test "x$pid" != "x"; then kill $pid; fi;  eval `ultrapossum-config term`; tunctl -d $host_if; iptables -t nat -D POSTROUTING -s $net -d ! $net -j MASQUERADE 2> /dev/null || true" 0
+
+trap "
+  if test "x$pid" != "x"; then kill $pid; fi
+  eval `ultrapossum-config term`
+  tunctl -d $host_if
+  if test "x$nat" = "xtrue"; then
+    iptables -t nat -D POSTROUTING -s $net -d ! $net -j MASQUERADE
+  fi
+" 0
 
 tunctl -u $UML_USER -t $host_if
 ifconfig $host_if $host broadcast $bcast netmask $netmask up



Ultrapossum-cvs メーリングリストの案内
Back to archive index