Skip to content

Commit

Permalink
gluon-ath9k-workaround: bug reporting support
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
sargon committed Jul 7, 2014
1 parent 6cc530c commit 91b43d0
Showing 1 changed file with 12 additions and 0 deletions.
@@ -0,0 +1,12 @@
#!/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 comments on commit 91b43d0

Please sign in to comment.