Skip to content
Snippets Groups Projects
Commit bb699204 authored by Daniel Ehlers's avatar Daniel Ehlers
Browse files

gluon-ath9k-workaround: bug reporting support

If the `monitor` attribute in the site.conf is defined, the cron
script is modifed to send debug informations, generated on bug
detection, to given remote host and port,
e.g.: "fda1:384a:74de:4242::2 8090"
parent 49febb43
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/lua
local site = require 'gluon.site_config'
local uci = require 'luci.model.uci'
local c = uci.cursor()
local f = io.open('/lib/gluon/cron/ath9k-workaround','w')
if f and site.monitor ~= nil then
f:write('* * * * * /usr/sbin/ath9k-workaround | nc ' .. site.monitor)
f:close()
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment