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