I just installed ushare on my slackware server so that i can share media to my xbox. I got it installed using this .tgz package:
http://repository.slacky.eu/slackwar...a/ushare/1.1a/
I followed this tutorial on how to configure the /etc/ushare.conf file to support xbox. Pretty straightforward:
http://nazham.com/2009/03/09/how-to-...360-and-linux/
When i try and restart rc.ushare, it gives me this error message: /etc/rc.d/rc.ushare: line 30: /lib/lsb/init-functions: No such file or directory
I went through the file and commented out the lines that got the "command not found" message or "no such file or directory", and here they are:
#!/bin/sh -e
#
# uShare init script
#
### BEGIN INIT INFO
# Provides: ushare
# Required-Start: $local_fs $syslog $network
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: uShare
# Description: uShare UPnP (TM) A/V & DLNA Media Server
# You should edit configuration in /etc/ushare.conf file
# See
http://ushare.geexbox.org for details
### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/ushare
NAME=ushare
DESC="uShare UPnP A/V & DLNA Media Server"
PIDFILE=/var/run/ushare.pid
CONFIGFILE=/etc/ushare.conf
# abort if no executable exists
[ -x $DAEMON ] || exit 0
# Get lsb functions
here--->#. /lib/lsb/init-functions
here--->#. /etc/default/rcS
[ -f /etc/default/ushare ] && . /etc/default/ushare
checkpid() {
[ -e $PIDFILE ] || touch $PIDFILE
}
check_shares() {
if [ -r "$CONFIGFILE" ]; then
. $CONFIGFILE
[ -n "$USHARE_DIR" ] && return 0
fi
return 1
}
case "$1" in
start)
here---># log_daemon_msg "Starting $DESC: $NAME"
if ! $(check_shares); then
log_warning_msg "No shares avalaible ..."
log_end_msg 0
else
checkpid
here---># start-stop-daemon --start --quiet --background --oknodo \
here---># --make-pidfile --pidfile $PIDFILE \
here---># --exec $DAEMON -- $USHARE_OPTIONS
here---># log_end_msg $?
fi
;;
stop)
here---># log_daemon_msg "Stopping $DESC: $NAME"
here---># start-stop-daemon --stop --signal 2 --quiet --oknodo --pidfile $PIDFILE
here---># log_end_msg $?
;;
reload|force-reload)
log_daemon_msg "Reloading $DESC: $NAME"
start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON
log_end_msg $?
;;
restart)
$0 stop
$0 start
;;
*)
N=/etc/init.d/$NAME
log_success_msg "Usage: $N {start|stop|restart|reload|force-reload}"
exit 1
;;
esac
exit 0
How do i fix this???