mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
13 lines
391 B
Bash
Executable file
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
|
|
|