From bd8e5fb7db8431d22fad5eb72a2a38c0f1b50f45 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 22 Nov 2006 23:06:40 +0000 Subject: move busybox init scripts from base-files into the busybox package and make them depend on busybox menuconfig options SVN-Revision: 5620 --- package/busybox/files/cron | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 package/busybox/files/cron (limited to 'package/busybox/files/cron') diff --git a/package/busybox/files/cron b/package/busybox/files/cron new file mode 100755 index 0000000000..e78d02332c --- /dev/null +++ b/package/busybox/files/cron @@ -0,0 +1,12 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org + +start () { + mkdir -p /var/spool/cron + [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs + crond -c /etc/crontabs +} + +stop() { + killall crond +} -- cgit v1.2.3