add crontab variable to wz_mini.conf

This commit is contained in:
Alfonso Gamboa 2022-08-02 20:33:12 -07:00
parent d57d83f4de
commit ad1d9fa1bd
5 changed files with 19 additions and 7 deletions

View File

@ -1,5 +1,13 @@
#!/bin/sh
#autostart crond
source /opt/wz_mini/etc/rc.common
source /opt/wz_mini/wz_mini.conf
autostart_crond() {
wait_for_wlan_ip
/opt/wz_mini/tmp/.bin/crond -b -c /opt/wz_mini/etc/cron/
}
if [[ "$ENABLE_CRONTAB" == "true" ]]; then
autostart_crond &
fi

View File

@ -95,6 +95,7 @@ DISABLE_MOTOR="false"
ENABLE_FSCK_ON_BOOT="false"
ENABLE_CAR_DRIVER="false"
ENABLE_LOCAL_DNS="false"
ENABLE_CRONTAB="false"
#####DEBUG#####
#drops you to a shell via serial, doesn't load app_init.sh

View File

@ -1 +1 @@
Sun Jul 31 09:35:00 PM PDT 2022
Tue Aug 2 08:32:39 PM PDT 2022

View File

@ -95,6 +95,7 @@ DISABLE_MOTOR="false"
ENABLE_FSCK_ON_BOOT="false"
ENABLE_CAR_DRIVER="false"
ENABLE_LOCAL_DNS="false"
ENABLE_CRONTAB="false"
#####DEBUG#####
#drops you to a shell via serial, doesn't load app_init.sh

View File

@ -50,10 +50,11 @@ d5c528b391309f6c4a33ce4f3dc120de SD_ROOT/wz_mini/etc/init.d/S02tmpfs
e3034eac02d8eda9902ca9cf89f0a586 SD_ROOT/wz_mini/etc/inittab
840aa9c26726201f7cffbf001bee193a SD_ROOT/wz_mini/etc/uvc_jxf22.config
d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/etc/rc.local.d/.gitignore
4e51a0eb0a3615ed8e9c115f4f7e2c7b SD_ROOT/wz_mini/etc/wz_mini.conf.dist
3ea3585cf333914f730494dee68e4ccb SD_ROOT/wz_mini/etc/wz_mini.conf.dist
4291fb00ec609b5b007ff9b3048e9248 SD_ROOT/wz_mini/etc/hosts
a856cf7998a5e556654e649a15c3fba5 SD_ROOT/wz_mini/etc/rc.common
8b5e58acfcbb20034dc4873a08b45fd9 SD_ROOT/wz_mini/etc/profile
574a0198606cf3a2255843cd1ed7860a SD_ROOT/wz_mini/etc/cron/root
2c2df1b9cb603f9c31c46162d6ac307f SD_ROOT/wz_mini/etc/alsa/alsa.conf
48c275a421535d8c21e7960545c684dc SD_ROOT/wz_mini/etc/rc.d/S18fps
6635e9bba82d69245bbd3e47f50828d4 SD_ROOT/wz_mini/etc/rc.d/K01network
@ -61,10 +62,11 @@ a856cf7998a5e556654e649a15c3fba5 SD_ROOT/wz_mini/etc/rc.common
3c688f5e675c18b3431543c640649810 SD_ROOT/wz_mini/etc/rc.d/S10firmware
b8705ccc4f08347d3676bb57f737c2a1 SD_ROOT/wz_mini/etc/rc.d/K03rcd
6a252a0be94933afd55f72b613fab583 SD_ROOT/wz_mini/etc/rc.d/K02webcam
e8ac5a3e46fecd6045d3f2b955510924 SD_ROOT/wz_mini/etc/rc.d/S07bonding
55d2f83605aea3ba553f3e984d582dc1 SD_ROOT/wz_mini/etc/rc.d/S07bonding
4666beb9851dd915d924d05a9791489a SD_ROOT/wz_mini/etc/rc.d/S06networkalt
dd8ced14fa4eeceaf3c49774e8762e9b SD_ROOT/wz_mini/etc/rc.d/S14nightdrop
e6e927ae715137152178ff317d17b8f2 SD_ROOT/wz_mini/etc/rc.d/S03ethernet
b4a838e79e92355a8b016b0e482b22b5 SD_ROOT/wz_mini/etc/rc.d/S20cron
8cf971c14e1340af9eb86c3b82f38131 SD_ROOT/wz_mini/etc/rc.d/S13mp4write
769776b26247d680ca564c9af3288c91 SD_ROOT/wz_mini/etc/rc.d/S05rndis
19ff129af984cf133c92e9c524dda401 SD_ROOT/wz_mini/etc/rc.d/S01swap
@ -151,7 +153,7 @@ b339aee882a5d1c943ad08e4282ec3fd SD_ROOT/wz_mini/usr/bin/iCamera-dbg
20b061689308b2cee7edf3b9b906bca7 SD_ROOT/wz_mini/usr/bin/ucamera
3777d9e80c8b517c01a124e6360b6525 SD_ROOT/wz_mini/usr/bin/imp_helper.sh
580b1b6e91e72b4a4fef7b21d8954403 SD_ROOT/wz_mini/usr/bin/getSensorType
fb46cce013896d57c791bd5f70ef1873 SD_ROOT/wz_mini/usr/bin/app.ver
06cfacf035480b477d43fb18c93b0ed8 SD_ROOT/wz_mini/usr/bin/app.ver
4c780f0455481d106d47d89f0ae04ed5 SD_ROOT/wz_mini/lib/uClibc.tar
9afeb088e4cbabbe0b04033b560204d0 SD_ROOT/wz_mini/lib/libimp.so
4100755cb6cc6e3b76da20c7e3690e16 SD_ROOT/wz_mini/lib/libalog.so
@ -300,7 +302,7 @@ c6a2e765996b4a8bfe351757785fb989 SD_ROOT/wz_mini/lib/modules/3.10.14__isvp_swan
14865a6e2e2df87a8362c6f20377a934 SD_ROOT/wz_mini/lib/libtinyalsa.so.2
bd383994491e4bdca81788c168feb2eb SD_ROOT/wz_mini/lib/libasound.so.2
f6f0d5a9ebd916de6bdb9695067809ae SD_ROOT/wz_mini/lib/libaudioProcess.so
4e51a0eb0a3615ed8e9c115f4f7e2c7b SD_ROOT/wz_mini/wz_mini.conf
3ea3585cf333914f730494dee68e4ccb SD_ROOT/wz_mini/wz_mini.conf
d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/tmp/.gitignore
283fca97d62c1c199eb2b04877998879 v2_install/compile_image.sh
53db8da5b90bc9b219dbb1d58e934bda v2_install/fw_tool.sh