545d86490c
This tool can periodically check for ath10k firmware crashes. If it finds a crash, it will package up the binary crash dump, some OS level things like dmesg, lspci, etc into a tar file. It then notifies the user about the crash and asks them to report the bug to the appropriate email address. This is most useful when used with ath10k-ct driver and CT ath10k firmware, but it should also report issues with stock ath10k driver and firmware in case one has appropriate contacts to debug them. This tool could be extended later for other modules/bugs/etc. Signed-off-by: Ben Greear <greearb@candelatech.com>
29 lines
389 B
Bash
Executable file
29 lines
389 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Periodically call bugcheck.sh script
|
|
|
|
CHECKER=bugcheck.sh
|
|
SLEEPFOR=60
|
|
|
|
DO_BUGCHECK=0
|
|
|
|
# So, to enable this, you create an /etc/config/bugcheck file
|
|
# with contents like:
|
|
# DO_BUGCHECK=1
|
|
# export DO_BUGCHECK
|
|
|
|
if [ -f /etc/config/bugcheck ]
|
|
then
|
|
. /etc/config/bugcheck
|
|
fi
|
|
|
|
if [ $DO_BUGCHECK == 0 ]
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
while true
|
|
do
|
|
$CHECKER
|
|
sleep $SLEEPFOR
|
|
done
|