Skip to content

Instantly share code, notes, and snippets.

@itspriddle
Created April 13, 2009 05:28
Show Gist options
  • Save itspriddle/94287 to your computer and use it in GitHub Desktop.
Save itspriddle/94287 to your computer and use it in GitHub Desktop.
#!/bin/bash
usage() {
cat <<-EOT
usage: $0 [home|work]
This script starts a Synergy server for home or work.
EOT
}
case "$1" in
home)
/usr/local/bin/synergys --config /usr/local/etc/synergy-home.conf -f 2> /dev/null &
;;
work)
/usr/local/bin/synergys --config /usr/local/etc/synergy-work.conf -f 2> /dev/null &
;;
*)
usage
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment