diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-02-20 23:13:39 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-02-20 23:13:39 +0000 |
commit | 2e878658a02ca4651673cad2f41a57f27557d6dc (patch) | |
tree | fd1c10f972e4e7f79775a2b3c52fe907869e6032 /rules/chrony.make | |
parent | be1d99320d214120a306d659e3eacac4411b5ad3 (diff) | |
download | ptxdist-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/chrony.make')
-rw-r--r-- | rules/chrony.make | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/rules/chrony.make b/rules/chrony.make index 3e2f5f633..018a4f88b 100644 --- a/rules/chrony.make +++ b/rules/chrony.make @@ -165,30 +165,17 @@ endif @UNCONFIGURED_CHRONY_ACCESS_KEY@, $(PTXCONF_CHRONY_DEFAULT_ACCESS_KEY) ) endif -# --------------------------- -# install startup script on demand -# -ifdef PTXCONF_ROOTFS_ETC_INITD_CHRONY -ifdef PTXCONF_ROOTFS_ETC_INITD_CHRONY_DEFAULT -# generic script with path modifications - @$(call install_copy, chrony, 0, 0, 0755, \ - $(PTXDIST_TOPDIR)/generic/etc/init.d/chrony, \ - /etc/init.d/chrony, n) -endif -ifdef PTXCONF_ROOTFS_ETC_INITD_CHRONY_USER -# users one - @$(call install_copy, chrony, 0, 0, 0755, \ - $(PTXDIST_WORKSPACE)/projectroot/etc/init.d/chrony, \ - /etc/init.d/chrony, n) -endif -# install link to launch automatically if enabled -ifneq ($(PTXCONF_ROOTFS_ETC_INITD_CHRONY_LINK),"") - @$(call install_link, chrony, \ - ../init.d/chrony, \ - /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_CHRONY_LINK)) + # + # busybox init: startscripts + # + +ifdef PTXCONF_INITMETHOD_BBINIT +ifdef PTXCONF_CHRONY_STARTSCRIPT + @$(call install_alternative, chrony, 0, 0, 0755, /etc/init.d/chrony, n) endif endif + # --------------------------- # install chrony command helper script # |