diff --git a/netmode/files/usr/libexec/rpcd/testnet b/netmode/files/usr/libexec/rpcd/testnet new file mode 100755 index 000000000..8bb5bcec2 --- /dev/null +++ b/netmode/files/usr/libexec/rpcd/testnet @@ -0,0 +1,18 @@ +#!/bin/sh + +. /usr/share/libubox/jshn.sh + +case "$1" in + list) + echo '{ "status" : {} }' + ;; + call) + case "$2" in + status) + json_load "$(cat /tmp/internet_connection_status 2>/dev/null)" + json_dump + ;; + esac + ;; +esac +