summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/etc
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-12-11 22:00:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-12-11 22:00:56 +0000
commitb4a4a1480a91e0dc76bdea89da63912b2561f536 (patch)
tree4112eebe8902a9b1b527f7b723a9b40e364f53e1 /openwrt/package/base-files/default/etc
parent565f9985db391208ff03759f3912f4c9a3ddb40e (diff)
downloadmtk-20170518-b4a4a1480a91e0dc76bdea89da63912b2561f536.zip
mtk-20170518-b4a4a1480a91e0dc76bdea89da63912b2561f536.tar.gz
mtk-20170518-b4a4a1480a91e0dc76bdea89da63912b2561f536.tar.bz2
create /var/spool/cron in cron init script and change the default crontab location to /etc/crontabs (fixes #88)
SVN-Revision: 2621
Diffstat (limited to 'openwrt/package/base-files/default/etc')
-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 ed43e74..6647fe1 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
+}