summaryrefslogtreecommitdiffstats
path: root/rules/samba.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/samba.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/samba.make')
-rw-r--r--rules/samba.make22
1 files changed, 8 insertions, 14 deletions
diff --git a/rules/samba.make b/rules/samba.make
index 51de6724b..a626d41b4 100644
--- a/rules/samba.make
+++ b/rules/samba.make
@@ -150,21 +150,15 @@ ifdef PTXCONF_ROOTFS_ETC_SAMBA_SECRETS_USER
$(PTXDIST_WORKSPACE)/projectroot/etc/samba/secrets.tdb,\
/etc/samba/secrets.tdb, n)
endif
-ifdef PTXCONF_ROOTFS_ETC_INITD_SAMBA_DEFAULT
- @$(call install_copy, rootfs, 0, 0, 0755, \
- $(PTXDIST_TOPDIR)/generic/etc/init.d/samba, \
- /etc/init.d/samba, n)
-endif
-ifdef PTXCONF_ROOTFS_ETC_INITD_SAMBA_USER
- @$(call install_copy, rootfs, 0, 0, 0644, \
- $(PTXDIST_WORKSPACE)/projectroot/etc/init.d/samba,\
- /etc/init.d/samba, n)
-endif
-ifneq ($(PTXCONF_ROOTFS_ETC_INITD_SAMBA_LINK),"")
- @$(call install_copy, samba, 0, 0, 0755, /etc/rc.d)
- @$(call install_link, samba, ../init.d/samba, \
- /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_SAMBA_LINK))
+ #
+ # busybox init
+ #
+
+ifdef PTXCONF_INITMETHOD_BBINIT
+ifdef PTXCONF_SAMBA_STARTSCRIPT
+ @$(call install_alternative, samba, 0, 0, 0755, /etc/init.d/samba, n)
+endif
endif
ifdef PTXCONF_SAMBA_CLIENT