summaryrefslogtreecommitdiffstats
path: root/package/busybox
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-11 22:00:56 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-11 22:00:56 +0000
commit0b535c275daf19abbfab30a83f57182a9d42f892 (patch)
treec6f1a8af9108014579b3ede98ba377769a645d33 /package/busybox
parent62872ac3a34fb845a6608c47e7521ec05c8c7ea9 (diff)
create /var/spool/cron in cron init script and change the default crontab location to /etc/crontabs (fixes #88)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2621 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/patches/200-etc_crontabs.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/busybox/patches/200-etc_crontabs.patch b/package/busybox/patches/200-etc_crontabs.patch
new file mode 100644
index 000000000..5ec01c1eb
--- /dev/null
+++ b/package/busybox/patches/200-etc_crontabs.patch
@@ -0,0 +1,24 @@
+diff -urN busybox.old/miscutils/crond.c busybox.dev/miscutils/crond.c
+--- busybox.old/miscutils/crond.c 2004-04-14 19:51:21.000000000 +0200
++++ busybox.dev/miscutils/crond.c 2005-12-11 22:54:07.878256250 +0100
+@@ -36,7 +36,7 @@
+ #define arysize(ary) (sizeof(ary)/sizeof((ary)[0]))
+
+ #ifndef CRONTABS
+-#define CRONTABS "/var/spool/cron/crontabs"
++#define CRONTABS "/etc/crontabs"
+ #endif
+ #ifndef TMPDIR
+ #define TMPDIR "/var/spool/cron"
+diff -urN busybox.old/miscutils/crontab.c busybox.dev/miscutils/crontab.c
+--- busybox.old/miscutils/crontab.c 2004-04-14 19:51:21.000000000 +0200
++++ busybox.dev/miscutils/crontab.c 2005-12-11 22:54:28.647554250 +0100
+@@ -28,7 +28,7 @@
+ #include <sys/resource.h>
+
+ #ifndef CRONTABS
+-#define CRONTABS "/var/spool/cron/crontabs"
++#define CRONTABS "/etc/crontabs"
+ #endif
+ #ifndef TMPDIR
+ #define TMPDIR "/var/spool/cron"