Fix XVM's classic networking problem.
[invirt/packages/invirt-remote.git] / host / usr / sbin / invirt-vmcontrol
index eaac5ac..dff84c3 100755 (executable)
@@ -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
        ;;