void-packages/srcpkgs/barrier/files/barrierc/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 barrierc --no-daemon ${OPTS:=--restart} $SERVER_ADDR