Вроде всё так же. Прошу проверить.

Code:
#!/bin/sh

PATH=/opt/bin:/opt/sbin:/usr/sbin:/usr/bin:/sbin:/bin
DAEMON=/opt/bin/ushare
NAME=ushare
DESC="uShare UPnP A/V Media Server"
PIDFILE=/var/run/ushare.pid
CONFFILE=/opt/etc/ushare.conf

[ -r "$CONFFILE" ] && . $CONFFILE

# abort if no executable exists
[ -x $DAEMON ] || exit 0

# abort if no shared directory is defined
if [ -z "$USHARE_DIR" ]; then
	echo "Stop : No media directory specified. Edit $CONFFILE."
	exit 0
fi

set -e

start() {
        if [ -f $PIDFILE ]; then
                echo "Warning : $PIDFILE still present. Unclean shutdown ?"
                kill -s 9 `cat $PIDFILE` 2>/dev/null
                rm -f $PIDFILE 2>/dev/null
        fi
        echo -n "Starting $DESC... "
        $DAEMON -o -D
        echo "done"
}

stop() {
        echo -n "Stopping $DESC... "
        if [ -f $PIDFILE ]; then
                kill -9 `cat $PIDFILE` 2>/dev/null
                rm -f $PIDFILE 2>/dev/null
        fi
        echo "done"
}

case "$1" in
        start)
                start
                ;;
        stop)
                stop
                ;;
        restart)
                stop
                sleep 1
                start
                ;;
        *)
                echo "Usage: $0 (start|stop|restart)"
                exit 1
                ;;
esac
Code:
# /etc/ushare.conf
# Configuration file for uShare

# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=uShare

# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=br0

# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=49200

# Port to listen for Telnet connections
# Ex : USHARE_TELNET_PORT=1337
USHARE_TELNET_PORT=

# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=tmp/harddisk/Video/Films,/tmp/harddisk/Video/HD,tmp/harddisk/Video/Mult,tmp/harddisk/Video/Films/Serial

# Use to override what happens when iconv fails to parse a file name.
# The default uShare behaviour is to not add the entry in the media list
# This option overrides that behaviour and adds the non-iconv'ed string into
# the media list, with the assumption that the renderer will be able to
# handle it. Devices like Noxon 2 have no problem with strings being passed
# as is. (Umlauts for all!)
#
# Options are TRUE/YES/1 for override and anything else for default behaviour
USHARE_OVERRIDE_ICONV_ERR=TRUE

# Enable Web interface (yes/no)
ENABLE_WEB=yes

# Enable Telnet control interface (yes/no)
ENABLE_TELNET=no

# Use XboX 360 compatibility mode (yes/no)
ENABLE_XBOX=no

# Use DLNA profile (yes/no)
# This is needed for PlayStation3 to work (among other devices)
ENABLE_DLNA=no
и лог:

Code:
18:23:25 15-05-2011 (notice|daemon|uShare) uShare[244]: Building Metadata List ...
18:23:25 15-05-2011 (notice|daemon|uShare) uShare[244]: Looking for files in content directory : tmp/harddisk/Video/Films
18:23:25 15-05-2011 (notice|daemon|uShare) uShare[244]: Looking for files in content directory : tmp/harddisk/Video/Mult
18:23:25 15-05-2011 (notice|daemon|uShare) uShare[244]: Looking for files in content directory : tmp/harddisk/Video/HD
18:23:25 15-05-2011 (notice|daemon|uShare) uShare[244]: Looking for files in content directory : tmp/harddisk/Video/Serial
18:23:25 15-05-2011 (notice|daemon|uShare) uShare[244]: Found 5 files and subdirectories.