Changeset 5513:9bbb23a56bc8 in roaraudio for dist/debian-like/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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.