void-packages/srcpkgs/barrier/files/barrierc/run

7 lines
198 B
Bash
Executable File

#!/bin/sh
exec 2>&1
[ -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