PKGBUILDs/aur/omxplayer-git/omxplayer.arch
2013-06-23 13:35:56 -04:00

13 lines
391 B
Bash
Executable file

#!/bin/bash
[ -e /usr/bin/omxplayer.bin ] && OMXPLAYER="/usr/bin/omxplayer.bin" || exit 255
FNTOPT=
#OMXFONT=${OMXFONT:-/usr/share/fonts/TTF/FreeSans.ttf}
[ -n "$OMXFONT" -a -e "$OMXFONT" ] && FNTOPT="--font $OMXFONT"
[ $# = 0 ] && exec $OMXPLAYER --help || \
[ "$1" = '-h' -o "$1" = '--help' ] && exec $OMXPLAYER --help || \
clear ; exec $OMXPLAYER $FNTOPT "$@" >/dev/null 2>&1