d94aef04e1
remotefs: Switched to Git tag for newest release, better package name and correct versioning. Removed libfuse from remotefs-server dependencies. Updated init script with actual version from remotefs repository. Signed-off-by: Aleksey Tulinov <aleksey.tulinov@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@39492 3c298f89-4303-0410-b956-a3cf2f4a3e73
28 lines
438 B
Bash
Executable File
28 lines
438 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
# Author: Oskari Rauta <oskari.rauta@gmail.com>
|
|
|
|
START=50
|
|
|
|
LISTEN=$(ifconfig br-lan | sed -n 's/.*dr:\(.*\)Bc.*/\1/p')
|
|
PORT="5001"
|
|
RFSD_USER="root"
|
|
PIDFILE="/var/run/rfsd.pid"
|
|
#QUIET="-q"
|
|
|
|
start()
|
|
{
|
|
rfsd -a ${LISTEN} -p ${PORT} -u ${RFSD_USER} -r ${PIDFILE} ${QUIET}
|
|
}
|
|
|
|
stop()
|
|
{
|
|
killall rfsd
|
|
}
|
|
|
|
reload()
|
|
{
|
|
kill -HUP `cat ${PIDFILE}` \
|
|
&& rfsd -a ${LISTEN} -p ${PORT} -u ${RFSD_USER} -r ${PIDFILE} ${QUIET}
|
|
}
|