Changeset 5513:9bbb23a56bc8 in roaraudio


Ignore:
Timestamp:
05/28/12 15:12:39 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Updated debian init script (Closes: #183)

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5511 r5513  
    55        * Improved random number generator. 
    66        * Added a way to register plugin parts with a universal API (Closes: #245) 
     7        * Updated debian init script (Closes: #183) 
    78 
    89v. 1.0beta1 - Sat May 12 2012 11:49 CEST 
  • dist/debian-like/defaults

    r5104 r5513  
    3030# It is used for Zero Conf like the location above. 
    3131#ROARD_DESCRIPTION='' 
     32 
     33# Contact for roard: 
     34# This lion is a contact info for the server. 
     35# It is in format: 
     36#  first ["']nick["'] last (comment) <email>/OpenPGPkey/Phone/Room 
     37#ROARD_CONTACT='' 
     38 
     39# Serial for roard: 
     40# This is the serial numer for the device this roard runs on. 
     41# This is only useful if this runs on an embedded device. 
     42#ROARD_SERIAL='' 
     43 
     44# User interface URL for roard: 
     45# This is an url to a user interface used to control this roard or system. 
     46# This can also be a telnet://, llogin:// or ssh:// url. 
     47#ROARD_UIURL='' 
    3248 
    3349# Default location for roard: 
     
    94110# ROARD_BITS=32 
    95111 
     112# Alternatively setting samplerate, channels and bits by AI Profile: 
     113# ROARD_AIPROFILE='default-server' 
     114 
    96115# Sound Driver and Device: 
    97116# To get a list run: roard --list-driver 
     
    100119# ROARD_DRIVER='oss' 
    101120# ROARD_DEVICE='/dev/dsp' 
    102 # ROARD_DRIVER_OPTIONS='sync' 
     121# ROARD_DRIVER_OPTIONS='sync,autoconf' 
    103122 
    104123# The Mixer Driver and Device: 
     
    122141# Defaults to roard's internal defaults. 
    123142# ROARD_ROLESTACK='' 
     143 
     144# --- [ Plugins ] --- 
     145 
     146# Plugins to load: 
     147# This lists the plugins to load. If no path is given (recommended) 
     148# they are loaded from the plugin search path. 
     149# Both, roard and universal (/multi-host) plugins can be loaded. 
     150# ROARD_PLUGINS='' 
    124151 
    125152# --- [ Auth Options ] --- 
  • dist/debian-like/roaraudio

    r5411 r5513  
    33# roaraudio initscript 
    44# 
    5 # Copyright (c) 2008-2010 Philipp 'ph3-der-loewe' Schafft <lion@lion.leolix.org> 
     5# Copyright (c) 2008-2012 Philipp 'ph3-der-loewe' Schafft <lion@lion.leolix.org> 
    66# Copyright (c)      2007 Javier Fernandez-Sanguino <jfs@debian.org> 
    77# 
     
    7777[ "$ROARD_DESCRIPTION" = ''    ] || ROARD_OPTS="--description '$ROARD_DESCRIPTION' $ROARD_OPTS" 
    7878 
     79[ "$ROARD_CONTACT"     = ''    ] || ROARD_OPTS="--contact '$ROARD_CONTACT' $ROARD_OPTS" 
     80[ "$ROARD_SERIAL"      = ''    ] || ROARD_OPTS="--serial '$ROARD_SERIAL' $ROARD_OPTS" 
     81[ "$ROARD_UIURL"       = ''    ] || ROARD_OPTS="--uiurl '$ROARD_UIURL' $ROARD_OPTS" 
     82 
     83[ "$ROARD_SOCKET" = '' ]  || ROARD_OPTS="--sock $ROARD_SOCKET $ROARD_OPTS" 
     84[ "$ROARD_PORT"   = '' ]  || ROARD_OPTS="--port $ROARD_PORT $ROARD_OPTS" 
     85 
     86if [ "$ROARD_OBJECT" = '' ] 
     87then 
     88 [ "$ROARD_HOST" = '' ]   || ROARD_OPTS="--bind $ROARD_HOST $ROARD_OPTS" 
     89else 
     90 ROARD_OPTS="--sock $ROARD_HOST::$ROARD_OBJECT $ROARD_OPTS" 
     91fi 
     92 
    7993case "$ROARD_AF" in 
    8094  UNIX|unix) 
     
    120134esac 
    121135 
    122 [ "$ROARD_SOCKET" = '' ]  || ROARD_OPTS="--sock $ROARD_SOCKET $ROARD_OPTS" 
    123 [ "$ROARD_PORT"   = '' ]  || ROARD_OPTS="--port $ROARD_PORT $ROARD_OPTS" 
    124  
    125 if [ "$ROARD_OBJECT" = '' ] 
    126 then 
    127  [ "$ROARD_HOST" = '' ]   || ROARD_OPTS="--bind $ROARD_HOST $ROARD_OPTS" 
    128 else 
    129  ROARD_OPTS="--sock $ROARD_HOST::$ROARD_OBJECT $ROARD_OPTS" 
     136if [ "$ROARD_PROFILES" != '' ] 
     137then 
     138 _p=`echo "$ROARD_PROFILES" | sed 's/  */ --new-sock --proto-profile /g'` 
     139 ROARD_OPTS="$ROARD_OPTS --new-sock --proto-profile $_p" 
    130140fi 
    131141 
     
    136146[ "$ROARD_BITS"    = '' ] || ROARD_OPTS="-B $ROARD_BITS $ROARD_OPTS" 
    137147 
     148[ "$ROARD_AIPROFILE" = '' ] || ROARD_OPTS="--aiprofile $ROARD_AIPROFILE $ROARD_OPTS" 
     149 
    138150[ "$ROARD_DRIVER" = '' ]  || ROARD_OPTS="-o $ROARD_DRIVER $ROARD_OPTS" 
    139151[ "$ROARD_DEVICE" = '' ]  || ROARD_OPTS="-O $ROARD_DEVICE $ROARD_OPTS" 
    140 [ "$ROARD_DRIVER_OPTIONS" = '' ] && ROARD_DRIVER_OPTIONS='sync' 
     152[ "$ROARD_DRIVER_OPTIONS" = '' ] && ROARD_DRIVER_OPTIONS='sync,autoconf' 
    141153ROARD_OPTS="-oP -oO $ROARD_DRIVER_OPTIONS $ROARD_OPTS" 
    142154 
     
    150162do 
    151163 ROARD_OPTS="--rolestack-push $_p $ROARD_OPTS" 
     164done 
     165 
     166for _p in $ROARD_PLUGINS 
     167do 
     168 ROARD_OPTS="--plugin-load $_p $ROARD_OPTS" 
    152169done 
    153170 
     
    195212 
    196213ROARD_OPTS="$ROARD_OPTS $ESD_OPTS $RSOUND_OPTS" 
    197  
    198 if [ "$ROARD_PROFILES" != '' ] 
    199 then 
    200  _p=`echo "$ROARD_PROFILES" | sed 's/  */ --new-sock --proto-profile /g'` 
    201  ROARD_OPTS="$ROARD_OPTS --new-sock --proto-profile $_p" 
    202 fi 
    203214 
    204215for _p in $CHOWN_LIST 
Note: See TracChangeset for help on using the changeset viewer.