diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-07-26 14:35:56 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-07-27 15:23:59 +0200 |
commit | 0dfd17c30907905e8c4253df33d1828dca2b45a6 (patch) | |
tree | e90e2c18eebe25cc823c1a0f01b6ee5fa98b916d /rules | |
parent | 0ee97dc80dfc496b9fab62a30b0a4bd53fad6644 (diff) | |
download | ptxdist-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.in | 2 | ||||
-rw-r--r-- | rules/rsync-bbinit.in | 8 | ||||
-rw-r--r-- | rules/rsync.make | 6 |
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 |