bbfdm/test/files/usr/libexec/rpcd/wifi.radio.test1
2024-02-06 12:34:06 +05:30

25 lines
782 B
Bash
Executable file

#!/bin/sh
. /usr/share/libubox/jshn.sh
case "$1" in
list)
echo '{ "status" : {}, "stats": {}, "scanresults": {} , "channels": {}}'
;;
call)
case "$2" in
status)
cat /tmp/wifi.radio.test1.status.data 2>/dev/null
;;
stats)
cat /tmp/wifi.radio.test1.stats.data 2>/dev/null
;;
scanresults)
cat /tmp/wifi.radio.test1.scanresults.data 2>/dev/null
;;
channels)
cat /tmp/wifi.radio.test1.channels.data 2>/dev/null
;;
esac
;;
esac