summaryrefslogtreecommitdiff
path: root/package/base-files
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/base-files
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/base-files')
-rwxr-xr-xpackage/base-files/default/etc/init.d/S60cron5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/base-files/default/etc/init.d/S60cron b/package/base-files/default/etc/init.d/S60cron
index ed43e743d0..6647fe1bc0 100755
--- a/package/base-files/default/etc/init.d/S60cron
+++ b/package/base-files/default/etc/init.d/S60cron
@@ -1,2 +1,5 @@
#!/bin/sh
-[ -d /etc/crontabs ] && crond -c /etc/crontabs
+[ -d /etc/crontabs ] && {
+ mkdir -p /var/spool/cron
+ crond -c /etc/crontabs
+}