From 545d86490ca2709d87e6e5ec0658316424b5b739 Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Wed, 24 Aug 2016 14:20:58 -0700 Subject: ct-bugcheck: Add tools to poll for and report ath10k firmware crashes. 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 --- package/utils/ct-bugcheck/src/bugcheck.initd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/utils/ct-bugcheck/src/bugcheck.initd (limited to 'package/utils/ct-bugcheck/src/bugcheck.initd') diff --git a/package/utils/ct-bugcheck/src/bugcheck.initd b/package/utils/ct-bugcheck/src/bugcheck.initd new file mode 100644 index 0000000000..b97a415bbf --- /dev/null +++ b/package/utils/ct-bugcheck/src/bugcheck.initd @@ -0,0 +1,16 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2016 OpenWrt.org + +START=99 + +USE_PROCD=1 +PROG=/usr/bin/bugchecker.sh + +# To actually make bugchecker.sh run, see comments +# at top of its file. + +start_service () { + procd_open_instance + procd_set_param command "$PROG" + procd_close_instance +} -- cgit v1.2.3