mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
14 lines
391 B
Text
14 lines
391 B
Text
|
#!/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
|
||
|
|