Browse Source

ffho-ath9k-blackout-workaround: update naming of site section

Julian Labus 6 years ago
parent
commit
788e7e7c86

+ 4 - 4
ffho/ffho-ath9k-blackout-workaround/ReadMe.md

@@ -7,19 +7,19 @@ we try to detect problems and restart the wifi.
 site.conf
 ---------
 
-**ath9k-workaround.blackout_wait:**
+**ath9k_workaround.blackout_wait:**
 - minimum delay in minutes to detect a possible blackout as blackout
 
-**ath9k-workaround.reset_wait:**
+**ath9k_workaround.reset_wait:**
 - minimum delay in minutes between reset
 
-**ath9k-workaround.step_size**
+**ath9k_workaround.step_size**
 - execute the cronjob each x minutes
 
 ### example
 ```lua
 {
-  ath9k-workaround = {
+  ath9k_workaround = {
     blackout_wait = 720,
     reset_wait = 1440,
     step_size = 10,

+ 2 - 2
ffho/ffho-ath9k-blackout-workaround/luasrc/usr/sbin/ath9k-blackout-workaround

@@ -54,8 +54,8 @@ if check_wifi() or not fs.readfile(fileOk) then
   os.exit(0)
 end
 
-local blackout_wait_secs = site.ath9k-workaround.blackout_wait *60
-local reset_wait_secs = site.ath9k-workaround.reset_wait *60
+local blackout_wait_secs = site.ath9k_workaround.blackout_wait *60
+local reset_wait_secs = site.ath9k_workaround.reset_wait *60
 
 if os.difftime(os.time(), tonumber(fs.readfile(fileReset))) <= reset_wait_secs then
   os.exit(0)