Wiki » commit.sh
| 1 |
#!/bin/sh
|
|---|---|
| 2 |
# file: /www/cgi-bin/commit.sh
|
| 3 |
|
| 4 |
uci set radio.@radio[0].state=0 |
| 5 |
uci commit radio |
| 6 |
|
| 7 |
echo 'Content-type: text/html' |
| 8 |
echo
|
| 9 |
|
| 10 |
echo '<head>' |
| 11 |
echo '<meta http-equiv="Refresh" content="0;url=http://192.168.1.42/cgi-bin/radio.cgi" />' |
| 12 |
echo '</head>' |
| 13 |
echo '<html><body>' |
| 14 |
#echo 'Channel selection made permanent on Router'
|
| 15 |
echo '</body></html>' |