Skip to content
Snippets Groups Projects
Commit 49ac4e33 authored by Clemens John's avatar Clemens John
Browse files

Move action parameter from data to fixed api format to be able to select...

Move action parameter from data to fixed api format to be able to select events based on this parameter
parent 2056eaeb
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ cd /usr/lib/ath9k-watchdog ...@@ -12,7 +12,7 @@ cd /usr/lib/ath9k-watchdog
while [ 1 = 1 ] while [ 1 = 1 ]
do do
for f in $(ls .); do for f in $(ls .); do
$WGETC -q $UPLOAD_URL"?object=router&object_id="$(uci get configurator.@crawl[0].router_id)"&data[action]=watchdog_ath9k_bug&"$(cat $f) -O - && rm $f $WGETC -q $UPLOAD_URL"?object=router&object_id="$(uci get configurator.@crawl[0].router_id)"&action=watchdog_ath9k_bug&"$(cat $f) -O - && rm $f
done done
sleep 60 sleep 60
# If there are more than 15 files, assume that files cannot be uploaded # If there are more than 15 files, assume that files cannot be uploaded
......
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