
October 16, 2007
Sean "Obsidian" Potter
Colin "Rhettigan" Dean
uShare
Forums
1 2 3 4 5
This site will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device.

I'm sure there are plenty of other creative ways to extend uShare with scripts. If you wanted, you could probably code an interrupt that forces uShare to refresh it's shares. That's a little beyond the scope of this article, but join the discussion in our forums and we'd be glad to help you with any ideas you have.
#!/sbin/runscript
# Copyright 2007 Sean Potter
# Distributed under the terms of the GNU General Public License, v2 or later
depend()
{
need net
use logger
}
start() {
ebegin "Starting uShare with XBox 360 Support"
start-stop-daemon --start --background --pidfile /var/run/ushare.pid --make-pidfile --exec /usr/bin/ushare -- -i eth1 -x -c /opt -n $HOSTNAME
eend $?
}
stop () {
ebegin "Stopping uShare with XBox 360 Support"
start-stop-daemon --stop --quiet --pidfile=/var/run/ushare.pid
eend $?
}