diff options
author | Juergen Beisert <j.beisert@pengutronix.de> | 2006-11-19 15:15:23 +0000 |
---|---|---|
committer | Juergen Beisert <j.beisert@pengutronix.de> | 2006-11-19 15:15:23 +0000 |
commit | 450b10c6a46d50744a1c77a1f80fc110c2936326 (patch) | |
tree | 54c2eebf632d6d09174f973af91b74ad48cfd2fe /rules | |
parent | c8a3ba5e91b2cc35aa10bd708ed6ae02179c683c (diff) | |
download | ptxdist-450b10c6a46d50744a1c77a1f80fc110c2936326.tar.gz ptxdist-450b10c6a46d50744a1c77a1f80fc110c2936326.tar.xz |
user defined crond (busybox) configuration added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6347 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules')
-rw-r--r-- | rules/rootfs_configfiles.in | 15 | ||||
-rw-r--r-- | rules/rootfs_configfiles.inc | 15 |
2 files changed, 30 insertions, 0 deletions
diff --git a/rules/rootfs_configfiles.in b/rules/rootfs_configfiles.in index 5858fa22c..f42f62572 100644 --- a/rules/rootfs_configfiles.in +++ b/rules/rootfs_configfiles.in @@ -593,3 +593,18 @@ config ROOTFS_GENERIC_IPKG_CONF This path is put into the /etc/ipkg.conf file and specifies where to find an IPKG packet feed. +# +# for Busybox' crond only +# /var/spool/cron/crontabs/ +# /etc/crond.conf +# +config ROOTFS_USERS_CROND_CONF + depends on ROOTFS + depends on ROOTFS_ETC_INITD_CROND + default n + bool + prompt "project's crond configuration" + help + Install /var/spool/cron/crontabs/root from projectroot/crond/root and + /etc/cron/daily from projectroot/crond/daily + diff --git a/rules/rootfs_configfiles.inc b/rules/rootfs_configfiles.inc index cdfb0010d..94e1a86bd 100644 --- a/rules/rootfs_configfiles.inc +++ b/rules/rootfs_configfiles.inc @@ -260,5 +260,20 @@ ifdef PTXCONF_ROOTFS_GENERIC_UDHCPC @$(call install_link, rootfs, /etc/udhcpc.script, /usr/share/udhcpc/default.script) endif +# ---------------------------------- + +ifdef PTXCONF_ROOTFS_USERS_CROND_CONF + @$(call install_copy, rootfs, 0, 0, 0755, /etc/cron) + @$(call install_copy, rootfs, 0, 0, 0755, /var/spool/cron/crontabs/) + + @$(call install_copy, rootfs, 0, 0, 0644, \ + $(PTXDIST_WORKSPACE)/projectroot/crond/root, \ + /var/spool/cron/crontabs/root, n) + + @$(call install_copy, rootfs, 0, 0, 0755, \ + $(PTXDIST_WORKSPACE)/projectroot/crond/daily, \ + /etc/cron/daily, n) +endif + # vim: syntax=make |