diff --git a/SD_ROOT/wz_mini/etc/cron/root b/SD_ROOT/wz_mini/etc/cron/root new file mode 100644 index 0000000..52e8af5 --- /dev/null +++ b/SD_ROOT/wz_mini/etc/cron/root @@ -0,0 +1,9 @@ +# Example of job definition: +# .---------------- minute (0 - 59) +# | .------------- hour (0 - 23) +# | | .---------- day of month (1 - 31) +# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... +# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat +# | | | | | +# * * * * * user-name command to be executed +#45 05 * * * /sbin/reboot \ No newline at end of file diff --git a/SD_ROOT/wz_mini/etc/rc.d/S20cron b/SD_ROOT/wz_mini/etc/rc.d/S20cron new file mode 100644 index 0000000..9076478 --- /dev/null +++ b/SD_ROOT/wz_mini/etc/rc.d/S20cron @@ -0,0 +1,5 @@ +#!/bin/sh +#autostart crond +source /opt/wz_mini/etc/rc.common +wait_for_wlan_ip +/opt/wz_mini/tmp/.bin/crond -b -c /opt/wz_mini/etc/cron/ \ No newline at end of file