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

6 lines
155 B
Bash

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