summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default
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
commitdec2e70c98af1105a0fb218eeb9633c02e7ae74e (patch)
tree7857904d5f1df7f4a8ecfe75768d7729aa36e57a /openwrt/package/base-files/default
parentcb823a6639fb5738ee43c952d026425573b9477a (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@2621 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/base-files/default')
-rwxr-xr-xopenwrt/package/base-files/default/etc/init.d/S60cron5
1 files changed, 4 insertions, 1 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S60cron b/openwrt/package/base-files/default/etc/init.d/S60cron
index ed43e743d0..6647fe1bc0 100755
--- a/openwrt/package/base-files/default/etc/init.d/S60cron
+++ b/openwrt/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
+}