X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/blobdiff_plain/fa8527190310e009d595321ad8267390085c3036..refs/heads/precise-dev:/host/usr/sbin/invirt-vmcontrol diff --git a/host/usr/sbin/invirt-vmcontrol b/host/usr/sbin/invirt-vmcontrol index eaac5ac..dff84c3 100755 --- a/host/usr/sbin/invirt-vmcontrol +++ b/host/usr/sbin/invirt-vmcontrol @@ -51,9 +51,9 @@ case "$ACTION" in gw=`echo $script | sed -ne 's/.* gateway=\([0-9\.]*\).*/\1/p'` oip=`echo $script | sed -ne 's/.* other_ip=\([0-9\.]*\).*/\1/p'` ogw=`echo $script | sed -ne 's/.* other_gateway=\([0-9\.]*\).*/\1/p'` - timeout 5 /usr/sbin/arpspoof -i $iface -t $gw $ip + timeout -s KILL 5 /usr/sbin/arpspoof -i $iface -t $gw $ip if [ -n "$oip" ]; then - timeout 5 /usr/sbin/arpspoof -i $iface -t $ogw $oip + timeout -s KILL 5 /usr/sbin/arpspoof -i $iface -t $ogw $oip fi done ;;