#!/bin/bash

# First make sure server is dead.
# Second, start the local synergy server.
#    -a 192.168.0.42 # listen for client with address
#    -c /home/jstile/.synergy.conf
#
#    --daemon         # run the server as a daemon.
#       -or--
#    -f, --no-daemon  # run the server in the foreground.
#  
#    -1, --no-restart  # do not try to restart the server if it fails
#       -or--
#    --restart            restart the server automatically if it fails.
#
echo "################"
echo " Broken. dont run"
echo "###################"
exit
if ( test `hostname` = "daman" ); then  
    killall synergys; 
    synergys -f -1 &
#connect to 192.168.0.42, and start client
ssh 192.168.0.42  'killall synergyc ; synergyc -f -1 --no-camp daman&'

fi
