1 2 3 4 5 6 7 8
#!/bin/sh -e . /www/service/cgi-bin/common.sh echo -e "Status: 200 OK\r Content-Type: application/json\r \r $(have_internet && echo true || echo false)"