rsync: import from packages

Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
This commit is contained in:
Maxim Storchak
2014-06-24 16:50:35 +03:00
parent 630ae414b2
commit 4145614571
3 changed files with 110 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# /etc/rsyncd.conf
# Minimal configuration for rsync daemon
# Next line required for init script
pid file = /var/run/rsyncd.pid
use chroot = yes
uid = nobody
gid = nogroup
read only = yes
# Simple example to configure server
#[openwrt-etc]
#path = /etc
#comment = OpenWrt Configuration Files
#exclude = /init.d
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2011-2014 OpenWrt.org
START=90
STOP=10
USE_PROCD=1
PROG=/usr/bin/rsync
start_service() {
procd_open_instance
procd_set_param command "$PROG" --daemon --no-detach
procd_close_instance
}