mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 13:37:19 +00:00
add syslog debug feature
This commit is contained in:
parent
ec28bd4219
commit
12a4549b5e
22
SD_ROOT/wz_mini/etc/rc.d/S21syslog
Normal file
22
SD_ROOT/wz_mini/etc/rc.d/S21syslog
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
source /opt/wz_mini/etc/rc.common
|
||||
source /opt/wz_mini/wz_mini.conf
|
||||
|
||||
wait_for_icamera
|
||||
|
||||
if [[ "$ENABLE_SYSLOG_SAVE" == "true" ]]; then
|
||||
echo "Store syslog logs"
|
||||
|
||||
SYSLOG_LOG=/opt/wz_mini/log/syslog
|
||||
if [[ -e $SYSLOG_LOG.log || -L $SYSLOG_LOG.log ]] ; then
|
||||
i=0
|
||||
while [[ -e $SYSLOG_LOG.log.$i || -L $SYSLOG_LOG.log.$i ]] ; do
|
||||
let i++
|
||||
done
|
||||
mv $SYSLOG_LOG.log $SYSLOG_LOG.log.$i
|
||||
SYSLOG_LOG=$SYSLOG_LOG
|
||||
fi
|
||||
touch -- "$SYSLOG_LOG".log
|
||||
logread -F > $SYSLOG_LOG.log &
|
||||
fi
|
@ -102,6 +102,7 @@ ENABLE_CRONTAB="false"
|
||||
DEBUG_ENABLED="false"
|
||||
DEBUG_INITRAMFS_ENABLED="false"
|
||||
DEBUG_PASSWORD="false"
|
||||
ENABLE_SYSLOG_SAVE="false"
|
||||
|
||||
####WEB####
|
||||
WEB_SERVER_ENABLED="false"
|
||||
|
@ -1 +1 @@
|
||||
Wed Aug 3 02:22:39 PM PDT 2022
|
||||
Wed Aug 3 02:30:25 PM PDT 2022
|
||||
|
@ -102,6 +102,7 @@ ENABLE_CRONTAB="false"
|
||||
DEBUG_ENABLED="false"
|
||||
DEBUG_INITRAMFS_ENABLED="false"
|
||||
DEBUG_PASSWORD="false"
|
||||
ENABLE_SYSLOG_SAVE="false"
|
||||
|
||||
####WEB####
|
||||
WEB_SERVER_ENABLED="false"
|
||||
|
7
file.chk
7
file.chk
@ -50,7 +50,7 @@ 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
|
||||
3ea3585cf333914f730494dee68e4ccb SD_ROOT/wz_mini/etc/wz_mini.conf.dist
|
||||
99a800721bfe8a1b0e98f039175c12fd SD_ROOT/wz_mini/etc/wz_mini.conf.dist
|
||||
4291fb00ec609b5b007ff9b3048e9248 SD_ROOT/wz_mini/etc/hosts
|
||||
21159766181abcce4cde59f54bb83962 SD_ROOT/wz_mini/etc/rc.common
|
||||
8b5e58acfcbb20034dc4873a08b45fd9 SD_ROOT/wz_mini/etc/profile
|
||||
@ -71,6 +71,7 @@ b4a838e79e92355a8b016b0e482b22b5 SD_ROOT/wz_mini/etc/rc.d/S20cron
|
||||
769776b26247d680ca564c9af3288c91 SD_ROOT/wz_mini/etc/rc.d/S05rndis
|
||||
19ff129af984cf133c92e9c524dda401 SD_ROOT/wz_mini/etc/rc.d/S01swap
|
||||
bbccf00adaf0b2494a98f18769e10a0f SD_ROOT/wz_mini/etc/rc.d/K15logging
|
||||
e100198faa2ea8153500331de667ad8e SD_ROOT/wz_mini/etc/rc.d/S21syslog
|
||||
69840400ee805665a3a4913003cf60db SD_ROOT/wz_mini/etc/rc.d/S04usbdirect
|
||||
093ae35263b39668da01bee03e81cbe9 SD_ROOT/wz_mini/etc/rc.d/S09coredump
|
||||
9e5591da95042bcca910403bde25dc60 SD_ROOT/wz_mini/etc/fstab
|
||||
@ -153,7 +154,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
|
||||
9d3e0680b05861463e02f7659f700660 SD_ROOT/wz_mini/usr/bin/app.ver
|
||||
f0bc707e7c4a6841569229deccd00a9a 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
|
||||
@ -302,7 +303,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
|
||||
3ea3585cf333914f730494dee68e4ccb SD_ROOT/wz_mini/wz_mini.conf
|
||||
99a800721bfe8a1b0e98f039175c12fd 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
|
||||
|
Loading…
Reference in New Issue
Block a user