summaryrefslogtreecommitdiffstats
path: root/rules/utelnetd.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2009-02-20 23:13:39 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2009-02-20 23:13:39 +0000
commit2e878658a02ca4651673cad2f41a57f27557d6dc (patch)
treefd1c10f972e4e7f79775a2b3c52fe907869e6032 /rules/utelnetd.make
parentbe1d99320d214120a306d659e3eacac4411b5ad3 (diff)
downloadptxdist-2e878658a02ca4651673cad2f41a57f27557d6dc.tar.gz
ptxdist-2e878658a02ca4651673cad2f41a57f27557d6dc.tar.xz
* init: introduce infrastructure for multiple init methods
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9802 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/utelnetd.make')
-rw-r--r--rules/utelnetd.make30
1 files changed, 9 insertions, 21 deletions
diff --git a/rules/utelnetd.make b/rules/utelnetd.make
index b8a394e8f..d5b62bfb9 100644
--- a/rules/utelnetd.make
+++ b/rules/utelnetd.make
@@ -68,31 +68,19 @@ $(STATEDIR)/utelnetd.targetinstall:
@$(call install_fixup, utelnetd,DEPENDS,)
@$(call install_fixup, utelnetd,DESCRIPTION,missing)
-#
-# Install the startup script on request only
-#
-ifdef PTXCONF_ROOTFS_ETC_INITD_UTELNETD_DEFAULT
-# install the generic one
@$(call install_copy, utelnetd, 0, 0, 0755, \
- $(PTXDIST_TOPDIR)/generic/etc/init.d/telnetd, \
- /etc/init.d/telnetd, n)
-endif
+ $(UTELNETD_DIR)/utelnetd, \
+ /sbin/utelnetd)
-ifdef PTXCONF_ROOTFS_ETC_INITD_UTELNETD_USER
-# install users one
- @$(call install_copy, utelnetd, 0, 0, 0755, \
- ${PTXDIST_WORKSPACE}/projectroot/etc/init.d/utelnetd, \
- /etc/init.d/telnetd, n)
-endif
+ #
+ # busybox init
+ #
-ifneq ($(PTXCONF_ROOTFS_ETC_INITD_TELNETD_LINK),"")
- @$(call install_copy, utelnetd, 0, 0, 0755, /etc/rc.d)
- @$(call install_link, utelnetd, ../init.d/telnetd, \
- /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_TELNETD_LINK))
+ifdef PTXCONF_INITMETHOD_BBINIT
+ifdef PTXCONF_UTELNETD_STARTSCRIPT
+ @$(call install_alternative, busybox, 0, 0, 0755, /etc/init.d/telnetd, n)
+endif
endif
-
- @$(call install_copy, utelnetd, 0, 0, 0755, $(UTELNETD_DIR)/utelnetd, \
- /sbin/utelnetd)
@$(call install_finish, utelnetd)