summaryrefslogtreecommitdiff
path: root/omxplayer/omxplayer.initd
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-01-28 18:12:59 +0100
committerKarel Kočí <cynerd@email.cz>2020-01-28 18:12:59 +0100
commit00fb5687c1cd8364b99411cf880afe918c8d0533 (patch)
treeab52a00f87d5071c42003e8736b35e73d2a260cd /omxplayer/omxplayer.initd
parent03d81dc30594f63016d0283e1841e4a09a93a0bc (diff)
downloadalpine-personal-pkgs-00fb5687c1cd8364b99411cf880afe918c8d0533.tar.gz
alpine-personal-pkgs-00fb5687c1cd8364b99411cf880afe918c8d0533.tar.bz2
alpine-personal-pkgs-00fb5687c1cd8364b99411cf880afe918c8d0533.zip
Revert "omxplayer: try to enable for aarch64"
This reverts commit 03d81dc30594f63016d0283e1841e4a09a93a0bc.
Diffstat (limited to 'omxplayer/omxplayer.initd')
-rw-r--r--omxplayer/omxplayer.initd34
1 files changed, 0 insertions, 34 deletions
diff --git a/omxplayer/omxplayer.initd b/omxplayer/omxplayer.initd
deleted file mode 100644
index 70af0e5..0000000
--- a/omxplayer/omxplayer.initd
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/sbin/openrc-run
-
-depend() {
- after net firewall chrony
-}
-
-omxplayer_run_loop() {
- while true; do
- /usr/bin/omxplayer "$@"
- status=$?
- echo "exited: $status"
- [ "$status" -eq 129 ] && exit 0
- [ "$status" -ne 0 ] && sleep ${OMXPLAYER_DELAY:-5}
- done
-}
-
-checkconfig() {
- [ -z "$OMXPLAYER_URL" ] && eerror "omxplayer URL not set"
- return 0
-}
-
-start() {
- checkconfig || return 1
- ebegin "Starting omxplayer"
- omxplayer_run_loop ${OMXPLAYER_OPTS} "${OMXPLAYER_URL}" 2>&1 | logger -t omxplayer &
- eend $?
-}
-
-stop() {
- ebegin "Stopping omxplayer"
- killall -HUP omxplayer
- eend $?
-}
-