summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-multimedia
diff options
context:
space:
mode:
authorBaptiste DURAND <baptiste.durand@gmail.com>2018-09-11 20:17:04 +0200
committerKhem Raj <raj.khem@gmail.com>2018-09-11 22:48:21 -0700
commit9e050f01a9edd43a3dc55c7cf63c4aa08767246d (patch)
tree346356e956ca7053e2870765a942373bb6e7f1e5 /meta-oe/recipes-multimedia
parentf0b1f3d30bff1418b655bbde7f4c2e84c2afcc4d (diff)
downloadmeta-openembedded-9e050f01a9edd43a3dc55c7cf63c4aa08767246d.tar.gz
minidlna: restore & fix recipe
Restore minidlna recipe and bump it to v1.2.1 Move it to meta-multimedia Signed-off-by: Baptiste Durand <baptiste.durand@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-multimedia')
-rw-r--r--meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d54
-rw-r--r--meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service10
2 files changed, 0 insertions, 64 deletions
diff --git a/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d b/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d
deleted file mode 100644
index 9e64a20fd..000000000
--- a/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d
+++ /dev/null
@@ -1,54 +0,0 @@
1#!/bin/sh
2
3NAME="minidlna"
4DAEMON=/usr/sbin/minidlnad
5SCRIPTNAME=/etc/init.d/$NAME
6PIDFILE=/var/run/$NAME.pid
7CONF=/etc/$NAME.conf
8ARGS="-f $CONF"
9
10# Exit if the package is not installed
11[ -x "$DAEMON" ] || exit 0
12
13start_function() {
14
15 export PATH=$PWD:$PATH
16
17 if [ -f ${PIDFILE} ]; then
18 echo "$SCRIPTNAME already running with PID #`cat $PIDFILE` ( according to ${PIDFILE} )";
19 exit 0
20 fi
21
22 $DAEMON $ARGS
23
24 pid=$!
25
26 if [ "$pid" != "" ]; then
27 echo -n "$pid" > ${PIDFILE}
28 fi
29}
30
31stop_function() {
32
33 export PATH=$PWD:$PATH
34
35 if [ ! -e "${PIDFILE}" ]; then
36 echo "${SCRIPTNAME} not running ( according to ${PIDFILE} )";
37 exit 1;
38 fi
39 PID=`cat ${PIDFILE}`
40 kill -INT ${PID}
41 rm -f ${PIDFILE}
42}
43
44case $1 in
45 "start")
46 start_function
47 ;;
48 "stop")
49 stop_function
50 ;;
51 *)
52 echo "Usage: $0 {start | stop}"
53
54esac
diff --git a/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service b/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service
deleted file mode 100644
index 656100bb6..000000000
--- a/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service
+++ /dev/null
@@ -1,10 +0,0 @@
1[Unit]
2Description=Minidlna Daemon
3After=network.target
4
5[Service]
6Type=notify
7ExecStart=/usr/sbin/minidlnad -f /etc/minidlna.conf
8
9[Install]
10WantedBy=multi-user.target