void-packages/srcpkgs/synergy/files/synergyc/run

6 lines
188 B
Bash
Executable File

#!/bin/sh
[ -r ./conf ] && . ./conf
[ -z $SERVER_ADDR ] && exit 0
[ -z $SKIP_X11_TEST ] && ! ps -C Xorg >/dev/null 2>&1 && exit 0
exec synergyc --no-daemon ${OPTS:=--restart} $SERVER_ADDR