unifios-utilities/on-boot-script-2.x/examples/udm-files/on_boot.d/25-add-cron-jobs.sh
2023-02-18 19:31:32 -08:00

10 lines
212 B
Bash

#!/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