Menu

[r1036]: / trunk / etc / rc.d / ushare  Maximize  Restore  History

Download this file

26 lines (20 with data), 473 Bytes

#!/bin/sh
# Copyright © 2007 Volker Theile (votdev@gmx.de)
# All rights reserved.

# PROVIDE: ushare
# REQUIRE: NETWORKING

. /etc/rc.subr
. /etc/rc.subrconf

name="ushare"
rcvar=`set_rcvar`
command="/usr/local/bin/${name}"
command_args="--daemon --xbox --cfg=/var/etc/$name.conf"
stop_postcmd="ushare_postcmd"

ushare_postcmd()
{
	# Delete multicast route.
	/sbin/route delete -net 239.0.0.0 > /dev/null
}

load_rc_config $name
create_conf_file $name
run_rc_command "$1"
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.