[packman] [PM] minidlna 1.1.1-4.1 (openSUSE 13.1/x86_64)

Markus Reckwerth marec at karumbe.de
Sun Jan 5 13:29:49 CET 2014


Hallo,

/usr/sbin/minidlnaconfig kann nicht mit Leerzeichen umgehen - das stört 
wahrscheinlich nur bei $friendly_name. Mit Anführungszeichen klappt es 
dann natürlich:

--- schnipp ---

#! /bin/sh

SYSCONFFILE=/etc/sysconfig/minidlna
CONFFILE=/var/lib/minidlna/minidlna.conf
DBDIR=/var/cache/minidlna
LOGDIR=/var/log/minidlna
TEMPFILE=/var/tmp/media_dir.temp

if [ -f $CONFFILE ]; then
   rm -f $CONFFILE
fi
. $SYSCONFFILE
if [ ! "$port" == "" ]; then
   echo "port=$port" >> $CONFFILE
fi
if [ ! "$network_interface" == "" ]; then
   echo "network_interface=$network_interface" >> $CONFFILE
fi
if [ ! "$user" == "" ]; then
   echo "user=$user" >> $CONFFILE
fi
if [ ! "$media_dir" == "" ]; then
   echo "$media_dir" > $TEMPFILE
   sed -i 's/ *| */\n/g' $TEMPFILE
   while read -r dir
     do
       echo "media_dir=$dir" >> $CONFFILE
     done < $TEMPFILE
   rm -f $TEMPFILE
fi
if [ ! "$friendly_name" == "" ]; then
   echo "friendly_name=$friendly_name" >> $CONFFILE
fi
if [ ! "$log_level" == "" ]; then
   echo "log_level=$log_level" >> $CONFFILE
fi
if [ ! "$album_art_names" == "" ]; then
   echo "album_art_names=$album_art_names" >> $CONFFILE
fi
if [ ! "$inotify" == "" ]; then
   echo "inotify=$inotify" >> $CONFFILE
fi
if [ ! "$enable_tivo" == "" ]; then
   echo "enable_tivo=$enable_tivo" >> $CONFFILE
fi
if [ ! "$strict_dlna" == "" ]; then
   echo "strict_dlna=$strict_dlna" >> $CONFFILE
fi
if [ ! "$presentation_url" == "" ]; then
   echo "presentation_url=http://$presentation_url:$port" >> $CONFFILE
fi
if [ ! "$notify_interval" == "" ]; then
   echo "notify_interval=$notify_interval" >> $CONFFILE
fi
if [ ! "$serial" == "" ]; then
   echo "serial=$serial" >> $CONFFILE
fi
if [ ! "$model_number" == "" ]; then
   echo "model_number=$model_number" >> $CONFFILE
fi
if [ ! "$minissdpdsocket" == "" ]; then
   echo "minissdpdsocket=$minissdpdsocket" >> $CONFFILE
fi
if [ ! "$root_container" == "" ]; then
   echo "root_container=$root_container" >> $CONFFILE
fi
echo "db_dir=$DBDIR" >> $CONFFILE
echo "log_dir=$LOGDIR" >> $CONFFILE

--- schnipp ---

Vielleicht lässt sich das in der nächsten Paketversion berücksichtigen.

Gruß,
Markus Reckwerth




More information about the Packman mailing list