Merge pull request #46 from lcb01a/master
Fixed bug which led to empty ath9k-workaround crontab file
This commit is contained in:
commit
a3ee6eef28
|
@ -5,8 +5,10 @@ local uci = require 'luci.model.uci'
|
||||||
|
|
||||||
local c = uci.cursor()
|
local c = uci.cursor()
|
||||||
|
|
||||||
|
if site.monitor ~= nil then
|
||||||
local f = io.open('/lib/gluon/cron/ath9k-workaround','w')
|
local f = io.open('/lib/gluon/cron/ath9k-workaround','w')
|
||||||
if f and site.monitor ~= nil then
|
if f ~= nil then
|
||||||
f:write('* * * * * /usr/sbin/ath9k-workaround | nc ' .. site.monitor)
|
f:write('* * * * * /usr/sbin/ath9k-workaround | nc ' .. site.monitor)
|
||||||
f:close()
|
f:close()
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue