florian 12e32d6038 rygel: add package
Plugins other than playbin are untested.

Rygel is normally run as a desktop service under a user account. It
doesn't behave like a system daemon. Since running as a desktop service
doesn't make sense for OpenWrt, I've included an init script and made a
crude change to send the output to syslog.

Signed-off-by: Andy Leiserson <andy@leiserson.org>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@34528 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-05 17:31:34 +00:00

31 lines
487 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# Copyright (C) 2012 OpenWrt.org
START=90
STOP=10
SERVICE_DAEMONIZE=1
cfgfile="/var/run/rygel.conf"
rm -f $cfgfile
config_cb() {
local section="$2"
[ -n "$section" ] && echo "[$section]" >> $cfgfile
}
option_cb() {
local name=$(echo "$1" | tr _ -)
local value="$2"
echo "$name=$value" >> $cfgfile
}
start() {
config_load rygel
service_start /usr/bin/rygel -c $cfgfile
}
stop() {
service_stop /usr/bin/rygel
}