Correcting the download URL. Also having it search for 'LibreWRT'
[librewrt/.git] / packages / xwrt / webif-asterisk / lib / asterisk / agi_bin / getnvram.sh
1 #!/bin/sh
2
3 # Set a variable called stdin to help us
4 # get the variables from Asterisk
5 stdin="0"
6
7 # Read in the variables from Asterisk,
8 # and write them to a log file
9 while [ "$stdin" != "" ]
10 do
11 read stdin
12 # if [ "$stdin" != EOF ]
13 # then
14 # echo $stdin >> /tmp/logfile.txt
15 # fi
16 done
17
18 value=$(nvram get $1)
19 # Send AGI Cmd to asterisk
20 echo "EXEC SetGlobalVar $1=${value}"
21
22 # Now read the response back from Asterisk,
23 read response
24 # echo $response >> /tmp/logfile.txt
25
26 exit 0