Files
quectel-rgmii-toolkit/ipk-source/sdxpinn-quecmanager-beta/root/www/cgi-bin/quecmanager/home/check_net.sh
Cameron Thompson 8e80ba5c91 Final edits
- Make all cgi-bin and init files executable

- Move NTP contribution fix from package --> to be appart of sdxpinn-patch

- Edited ntp fi location

- Added additional service triggers to primary service quecmanager-services
2025-03-11 23:39:06 -04:00

14 lines
311 B
Bash
Executable File

#!/bin/sh
# Set the content type to JSON
echo "Content-Type: application/json"
echo ""
# Ping 8.8.8.8 with 2 packets and capture the result
if ping -c 2 8.8.8.8 > /dev/null 2>&1; then
# Ping was successful
echo '{"connection": "ACTIVE"}'
else
# Ping failed
echo '{"connection": "INACTIVE"}'
fi