summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-07-26 14:35:56 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-07-27 15:23:59 +0200
commit0dfd17c30907905e8c4253df33d1828dca2b45a6 (patch)
treee90e2c18eebe25cc823c1a0f01b6ee5fa98b916d /rules
parent0ee97dc80dfc496b9fab62a30b0a4bd53fad6644 (diff)
downloadptxdist-0dfd17c30907905e8c4253df33d1828dca2b45a6.tar.gz
ptxdist-0dfd17c30907905e8c4253df33d1828dca2b45a6.tar.xz
[rsync] install rc.d link with the init script
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/initmethod-bbinit.in2
-rw-r--r--rules/rsync-bbinit.in8
-rw-r--r--rules/rsync.make6
3 files changed, 15 insertions, 1 deletions
diff --git a/rules/initmethod-bbinit.in b/rules/initmethod-bbinit.in
index 2d131300a..6e686c2c8 100644
--- a/rules/initmethod-bbinit.in
+++ b/rules/initmethod-bbinit.in
@@ -85,7 +85,7 @@ config INITMETHOD_BBINIT_LINK_HWCLOCK
config INITMETHOD_BBINIT_LINK_RSYNCD
string
- depends on RSYNC_STARTSCRIPT || RSYNC3_STARTSCRIPT
+ depends on RSYNC3_STARTSCRIPT
prompt "rsyncd"
default "S20rsyncd"
diff --git a/rules/rsync-bbinit.in b/rules/rsync-bbinit.in
new file mode 100644
index 000000000..d97407433
--- /dev/null
+++ b/rules/rsync-bbinit.in
@@ -0,0 +1,8 @@
+## SECTION=initmethod_bbinit
+
+config RSYNC_BBINIT_LINK
+ string
+ depends on RSYNC_STARTSCRIPT
+ prompt "rsyncd"
+ default "S20rsyncd"
+
diff --git a/rules/rsync.make b/rules/rsync.make
index 37f668cdc..af24fc0ba 100644
--- a/rules/rsync.make
+++ b/rules/rsync.make
@@ -83,6 +83,12 @@ ifdef PTXCONF_RSYNC_STARTSCRIPT
@$(call install_replace, rsync, /etc/init.d/rsyncd, \
@CONFIG@, \
"--config=$(PTXCONF_RSYNC_CONFIG_FILE)" )
+
+ifneq ($(call remove_quotes,$(PTXCONF_RSYNC_BBINIT_LINK)),)
+ @$(call install_link, rsync, \
+ ../init.d/rsyncd, \
+ /etc/rc.d/$(PTXCONF_RSYNC_BBINIT_LINK))
+endif
endif
endif
endif