mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
busybox: use a config option instead of a patch to select the cron directory
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40847 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -1656,7 +1656,7 @@ config BUSYBOX_DEFAULT_FEATURE_CROND_CALL_SENDMAIL
|
||||
default n
|
||||
config BUSYBOX_DEFAULT_FEATURE_CROND_DIR
|
||||
string
|
||||
default "/var/spool/cron"
|
||||
default "/etc"
|
||||
config BUSYBOX_DEFAULT_CRONTAB
|
||||
bool
|
||||
default y
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
--- a/miscutils/crond.c
|
||||
+++ b/miscutils/crond.c
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
|
||||
#define TMPDIR CONFIG_FEATURE_CROND_DIR
|
||||
-#define CRONTABS CONFIG_FEATURE_CROND_DIR "/crontabs"
|
||||
+#define CRONTABS "/etc/crontabs"
|
||||
#ifndef SENDMAIL
|
||||
# define SENDMAIL "sendmail"
|
||||
#endif
|
||||
--- a/miscutils/crontab.c
|
||||
+++ b/miscutils/crontab.c
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "libbb.h"
|
||||
|
||||
-#define CRONTABS CONFIG_FEATURE_CROND_DIR "/crontabs"
|
||||
+#define CRONTABS "/etc/crontabs"
|
||||
#ifndef CRONUPDATE
|
||||
#define CRONUPDATE "cron.update"
|
||||
#endif
|
||||
Reference in New Issue
Block a user