unifios-utilities/on-boot-script-2.x/examples/udm-files/on_boot.d/25-add-cron-jobs.sh

10 lines
212 B
Bash
Raw Normal View History

2023-02-19 03:31:32 +00:00
#!/bin/sh
## Store crontab files in /mnt/data/cronjobs/ (you will need to create this folder).
## This script will re-add them on startup.
cp /mnt/data/cronjobs/* /etc/cron.d/
/etc/init.d/crond restart
exit 0