Masato Taruishi
taru****@users*****
2004年 10月 19日 (火) 20:34:42 JST
=================================================================== RCS file: demo/uml/uml-run,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- demo/uml/uml-run 2004/10/19 11:03:40 1.9 +++ demo/uml/uml-run 2004/10/19 11:34:42 1.10 @@ -30,7 +30,7 @@ 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" 0 +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 tunctl -u $UML_USER -t $host_if ifconfig $host_if $host broadcast $bcast netmask $netmask up @@ -43,7 +43,5 @@ fi echo 1 > /proc/sys/net/ipv4/ip_forward -if ! "$@"; then - read dummy -fi +"$@"