File: gmrender-resurrect.default

package info (click to toggle)
gmrender-resurrect 0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 644 kB
  • sloc: ansic: 4,772; sh: 223; makefile: 48; xml: 12
file content (41 lines) | stat: -rwxr-xr-x 1,554 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Defaults for gmrender-resurrect initscript
# sourced by /etc/init.d/gmrender-resurrect
# installed at /etc/default/gmrender-resurrect by the maintainer scripts

#
# This is a POSIX shell fragment
#

# User and group the daemon will be running as.
DAEMON_USER="nobody:audio"

# Device name as it will be advertised to and shown in the UPnP 
# controller UI. Some string that helps you recognize the player, e.g. 
# "Livingroom Player"
# Default is the short hostname of this device
UPNP_DEVICE_NAME=`hostname -s`

# Initial volume in decibel. 0.0 is 'full volume', -10 correspondents to 
# '75' on the exported volume scale (Note, this does not change the ALSA 
# volume, only internal to gmrender. So make sure to leave the ALSA 
# volume always to 100%).
INITIAL_VOLUME_DB=-10

# If you explicitly choose a specific ALSA device here (find them with 
# 'aplay -L'), then gmediarenderer will use that ALSA device to play 
# audio. Otherwise, whatever default is configured for gstreamer for the 
# '$DAEMON_USER' is used.
ALSA_DEVICE="sysdefault"
#ALSA_DEVICE="iec958"

if [ -n "$ALSA_DEVICE" ] ; then
	GS_SINK_PARAM="--gstout-audiosink=alsasink"
	GS_DEVICE_PARAM="--gstout-audiodevice=$ALSA_DEVICE"
fi

# A simple stable UUID, based on this systems' first ethernet 
# device's MAC address, only using tools readily available to generate.
UPNP_UUID=`ip link show | awk '/ether/ {print "salt:)-" $2}' | head -1 | md5sum | awk '{print $1}'`

# Alternatively use the MD5 summ of the short host name.
# UPNP_UUID=`hostname -s | md5sum | | awk '{print $1}'`