summaryrefslogtreecommitdiffstats
path: root/rules/dropbear.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/dropbear.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/dropbear.make')
-rw-r--r--rules/dropbear.make26
1 files changed, 7 insertions, 19 deletions
diff --git a/rules/dropbear.make b/rules/dropbear.make
index 1fbd3b1dd..04222d907 100644
--- a/rules/dropbear.make
+++ b/rules/dropbear.make
@@ -304,25 +304,13 @@ ifdef PTXCONF_DROPBEAR_SCP
$(DROPBEAR_DIR)/scp, /usr/bin/scp)
endif
-ifdef PTXCONF_ROOTFS_ETC_INITD_DROPBEAR
-ifdef PTXCONF_ROOTFS_ETC_INITD_DROPBEAR_DEFAULT
-# install generic one
- @$(call install_copy, dropbear, 0, 0, 0755, \
- $(PTXDIST_TOPDIR)/generic/etc/init.d/dropbear, \
- /etc/init.d/dropbear, n)
-endif
-ifdef PTXCONF_ROOTFS_ETC_INITD_DROPBEAR_USER
-# install users one
- @$(call install_copy, dropbear, 0, 0, 0755, \
- ${PTXDIST_WORKSPACE}/projectroot/etc/init.d/dropbear, \
- /etc/init.d/dropbear, n)
-endif
-#
-# FIXME: Is this packet the right location for the link?
-#
-ifneq ($(PTXCONF_ROOTFS_ETC_INITD_DROPBEAR_LINK),"")
- @$(call install_link, dropbear, ../init.d/dropbear, \
- /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_DROPBEAR_LINK))
+ #
+ # busybox init: start script
+ #
+
+ifdef PTXCONF_INITMETHOD_BBINIT
+ifdef PTXCONF_DROPBEAR_STARTSCRIPT
+ @$(call install_alternative, dropbear, 0, 0, 0755, /etc/init.d/dropbear, n)
endif
endif