7 lines
111 B
Plaintext
7 lines
111 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
status=$(curl -s 192.168.1.201/status.php)
|
||
|
|
||
|
echo ""
|
||
|
[ "$status" = 1 ] && echo "on" || echo "off"
|