e9740b882c
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16714 3c298f89-4303-0410-b956-a3cf2f4a3e73
26 lines
338 B
Bash
Executable File
26 lines
338 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=50
|
|
|
|
LISTEN=$(ifconfig br-lan | sed -n 's/.*dr:\(.*\)Bc.*/\1/p')
|
|
PORT="5001"
|
|
RFSD_USER="root"
|
|
RFSD_GROUP="root"
|
|
PIDFILE="/var/run/rfsd.pid"
|
|
|
|
start()
|
|
{
|
|
rfsd -a ${LISTEN} -p ${PORT} -u ${RFSD_USER} -g ${RFSD_GROUP} -r ${PIDFILE}
|
|
}
|
|
|
|
stop()
|
|
{
|
|
killall rfsd
|
|
}
|
|
|
|
reload()
|
|
{
|
|
kill -s HUP `cat ${PIDFILE}`
|
|
start
|
|
}
|