summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2006-11-16 21:24:10 +0000
committerJuergen Beisert <j.beisert@pengutronix.de>2006-11-16 21:24:10 +0000
commitbee6118e925be1191478fb61191fa36ed67fb9c9 (patch)
tree142e67b4757925cad9c1b3eed49e9deaa152b15d /rules
parent17a60a74a87c39598ad3e8b3faf8161a24047a97 (diff)
downloadptxdist-bee6118e925be1191478fb61191fa36ed67fb9c9.tar.gz
ptxdist-bee6118e925be1191478fb61191fa36ed67fb9c9.tar.xz
crond start script added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6330 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules')
-rw-r--r--rules/rootfs_init_d.inc24
-rw-r--r--rules/rootfs_init_d_files.in30
-rw-r--r--rules/rootfs_rc_d_links.in14
3 files changed, 66 insertions, 2 deletions
diff --git a/rules/rootfs_init_d.inc b/rules/rootfs_init_d.inc
index c34b84c64..a63d3f3d1 100644
--- a/rules/rootfs_init_d.inc
+++ b/rules/rootfs_init_d.inc
@@ -130,6 +130,30 @@ ifneq ($(PTXCONF_ROOTFS_ETC_INITD_SYSLOGD_KLOGD_LINK),"")
endif
endif
+#
+# crond's script is here, because the busybox entry does not provide it
+#
+ifdef PTXCONF_ROOTFS_ETC_INITD_CROND
+# provide everything for standalone mode
+ifdef PTXCONF_ROOTFS_ETC_INITD_CROND_DEFAULT
+# use the generic one
+ @$(call install_copy, rootfs, 0, 0, 0755, \
+ $(PTXDIST_TOPDIR)/generic/etc/init.d/crond, \
+ /etc/init.d/crond, n)
+endif
+ifdef PTXCONF_ROOTFS_ETC_INITD_CROND_USER
+# user defined one
+ @$(call install_copy, rootfs, 0, 0, 0755, \
+ $(PTXDIST_WORKSPACE)/projectroot/etc/init.d/crond, \
+ /etc/init.d/crond, n)
+endif
+
+ifneq ($(PTXCONF_ROOTFS_ETC_INITD_CROND_LINK),"")
+ @$(call install_link, rootfs, ../init.d/crondd, \
+ /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_CROND_LINK))
+endif
+endif
+
# FIXME: Move this into dropbear's packet!
ifdef PTXCONF_ROOTFS_ETC_INITD_DROPBEAR
@$(call install_copy, rootfs, 0, 0, 0755, \
diff --git a/rules/rootfs_init_d_files.in b/rules/rootfs_init_d_files.in
index 7d03ce790..1f5dfadff 100644
--- a/rules/rootfs_init_d_files.in
+++ b/rules/rootfs_init_d_files.in
@@ -306,5 +306,33 @@ menuconfig ROOTFS_ETC_INITD_PUREFTPD
help
Enter a path and filename to be used as pure-ftpd script on your target.
+########################## crond ##########################################
+# this is for busybox' crond only
+#
+menuconfig ROOTFS_ETC_INITD_CROND
+ depends on ROOTFS_ETC_INITD && BB_CONFIG_CROND
+ bool
+ default y
+ prompt "crond "
+ help
+ The /etc/init.d/crond script lets you control busybox' crond daemon.
+
+ choice
+ prompt "Kind of startup scrict"
+ depends on ROOTFS_ETC_INITD_CROND
+ default ROOTFS_ETC_INITD_CROND_DEFAULT
-########################## ? ##########################################
+ config ROOTFS_ETC_INITD_CROND_DEFAULT
+ bool
+ prompt "Use generic"
+ help
+ A file from generic/etc/init.d/crond will be used.
+
+ config ROOTFS_ETC_INITD_CROND_USER
+ bool
+ prompt "User defined"
+ help
+ This uses a user defined crond startup script.
+ PTXdist uses file projectroot/etc/init.d/crond in
+ your local project
+ endchoice
diff --git a/rules/rootfs_rc_d_links.in b/rules/rootfs_rc_d_links.in
index 2e7331a46..a496dd569 100644
--- a/rules/rootfs_rc_d_links.in
+++ b/rules/rootfs_rc_d_links.in
@@ -194,7 +194,7 @@ config ROOTFS_ETC_INITD_FAM_LINK
start fam as a standalone service when system starts. Keep this entry
empty if you do not want to start this service automatically.
-############################ syslog/klogd ###################################
+############################ syslogd/klogd ###################################
config ROOTFS_ETC_INITD_SYSLOGD_KLOGD_LINK
depends on ROOTFS_ETC_INITD_SYSLOGD_KLOGD
@@ -205,3 +205,15 @@ config ROOTFS_ETC_INITD_SYSLOGD_KLOGD_LINK
Set a link into /etc/rc.d which points to /etc/init.d/syslogd to
start syslogd/klogd when system starts. Keep this entry empty if
you do not want to start this service automatically.
+
+################################ crond #######################################
+
+config ROOTFS_ETC_INITD_CROND_LINK
+ depends on ROOTFS_ETC_INITD_CROND
+ string
+ prompt "crond link name"
+ default "S17_crondd"
+ help
+ Set a link into /etc/rc.d which points to /etc/init.d/crond to
+ start crond when system starts. Keep this entry empty if
+ you do not want to start this service automatically.