Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
From 2710bc67cd920323da9b23a3d60193577bd43d71 Mon Sep 17 00:00:00 2001
From: Carlos Santos <unixmania@gmail.com>
Date: Sat, 20 Jul 2019 00:27:31 -0300
Subject: [PATCH] main.c: add newline to logfile opening error message
Signed-off-by: Carlos Santos <unixmania@gmail.com>
[Upstream status: https://github.com/dubiousjim/dcron/pull/22]
---
main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
index 0eba280..2606db8 100644
--- a/main.c
+++ b/main.c
@@ -261,7 +261,7 @@ main(int ac, char **av)
dup2(fd, 2);
} else {
int n = errno;
- fdprintf(2, "failed to open logfile '%s', reason: %s", LogFile, strerror(n));
+ fdprintf(2, "failed to open logfile '%s', reason: %s\n", LogFile, strerror(n));
exit(n);
}
}
--
2.18.1

View File

@@ -0,0 +1,28 @@
From 1fd99b71b063b1573beaf9f6b801ec5be2fbe24f Mon Sep 17 00:00:00 2001
From: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Date: Fri, 2 Sep 2022 23:20:14 +0200
Subject: [PATCH] Make @hourly, @daily, ... work again
closes #15
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Upstream: https://github.com/dubiousjim/dcron/pull/35
---
database.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/database.c b/database.c
index 37cf17a..6ec720e 100644
--- a/database.c
+++ b/database.c
@@ -455,6 +455,8 @@ SynchronizeFile(const char *dpath, const char *fileName, const char *userName)
line.cl_Days[j] = 1;
for (j=0; j<12; ++j)
line.cl_Mons[j] = 1;
+ for (j=0; j<7; ++j)
+ line.cl_Dow[j] = ALL_DOW;
}
while (*ptr == ' ' || *ptr == '\t')
--
2.35.1

23
package/dcron/Config.in Normal file
View File

@@ -0,0 +1,23 @@
config BR2_PACKAGE_DCRON
bool "dcron"
depends on BR2_USE_MMU # fork()
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
help
dcron is a time-based job scheduler with anacron-like
features. It works as a background daemon that parses
individual crontab files and executes commands on behalf of
the users in question.
Upon installation, this package will enable a system level
cron daemon with hourly, daily, weekly and monthly crontabs.
However, it doesn't allow non root users to create their own
crontab file. This is because /var/spool/cron/crontabs is
non user writable.
Typically, a crontab group is created on the system and
users allowed to create crontab entries are added into this
group, while crontab executable is owned by root:crontab
with sgid bit enabled.
http://www.jimpryor.net/linux/dcron.html

22
package/dcron/S90dcron Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/sh
case "$1" in
start)
printf "Starting cron ... "
start-stop-daemon -S -q -m -b -p /var/run/dcron.pid --exec /usr/sbin/crond -- -f
echo "done."
;;
stop)
printf "Stopping cron ..."
start-stop-daemon -K -q -p /var/run/dcron.pid
echo "done."
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
;;
esac

3
package/dcron/dcron.hash Normal file
View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 5a53930ba27b57c06c3b03635788cf569990283bde8ea9c1ee820e13f988288d dcron-1ba33c3325df48de46263276a43ed76cf9d81518.tar.gz
sha256 640d90f6ee401241ff62834d0d1b33f83049e99b8bfdfa04ed1b0a1635dde3e7 COPYING

36
package/dcron/dcron.mk Normal file
View File

@@ -0,0 +1,36 @@
################################################################################
#
# dcron
#
################################################################################
DCRON_VERSION = 1ba33c3325df48de46263276a43ed76cf9d81518
DCRON_SITE = $(call github,dubiousjim,dcron,$(DCRON_VERSION))
DCRON_LICENSE = GPL-2.0+
DCRON_LICENSE_FILES = COPYING
define DCRON_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef
define DCRON_INSTALL_TARGET_CMDS
$(INSTALL) -D -m0700 $(@D)/crond $(TARGET_DIR)/usr/sbin/crond
$(INSTALL) -D -m4755 $(@D)/crontab $(TARGET_DIR)/usr/bin/crontab
$(INSTALL) -D -m0644 $(@D)/extra/root.crontab $(TARGET_DIR)/etc/cron.d/system
# Busybox provides run-parts, so there is no need to use nor install provided run-cron
$(SED) 's#/usr/sbin/run-cron#/bin/run-parts#g' $(TARGET_DIR)/etc/cron.d/system
$(INSTALL) -d -m0755 $(TARGET_DIR)/var/spool/cron/crontabs \
$(TARGET_DIR)/etc/cron.daily $(TARGET_DIR)/etc/cron.hourly \
$(TARGET_DIR)/etc/cron.monthly $(TARGET_DIR)/etc/cron.weekly
endef
define DCRON_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/dcron/S90dcron $(TARGET_DIR)/etc/init.d/S90dcron
endef
define DCRON_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 package/dcron/dcron.service \
$(TARGET_DIR)/usr/lib/systemd/system/dcron.service
endef
$(eval $(generic-package))

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Task scheduler daemon
After=syslog.target
[Service]
ExecStart=/usr/sbin/crond -S
Type=forking
[Install]
WantedBy=multi-user.target