From d31785efcfc9cb1598b6bd1e8c8e45846e15cebc Mon Sep 17 00:00:00 2001
From: Clemens John <clemens-john@gmx.de>
Date: Sat, 4 May 2013 00:29:40 +0200
Subject: [PATCH] Add api key parameter to be able to write on the API

---
 ath9k-watchdog/files/ath9k-watchdog-pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ath9k-watchdog/files/ath9k-watchdog-pm b/ath9k-watchdog/files/ath9k-watchdog-pm
index b5e3524..d984be0 100755
--- a/ath9k-watchdog/files/ath9k-watchdog-pm
+++ b/ath9k-watchdog/files/ath9k-watchdog-pm
@@ -12,7 +12,7 @@ cd /usr/lib/ath9k-watchdog
 while [ 1 = 1 ]
 do
 	for f in $(ls .); do 
-		$WGETC -q $UPLOAD_URL"?object=router&object_id="$(uci get configurator.@crawl[0].router_id)"&action=watchdog_ath9k_bug&"$(cat $f) -O - && rm $f
+		$WGETC -q $UPLOAD_URL"?api_key=$(uci get configurator.@api[0].api_key)&object=router&object_id="$(uci get configurator.@crawl[0].router_id)"&action=watchdog_ath9k_bug&"$(cat $f) -O - && rm $f
 	done
 	sleep 60
 	# If there are more than 15 files, assume that files cannot be uploaded
-- 
GitLab