#!/bin/sh

. /usr/share/libubox/jshn.sh

case "$1" in
        list)
                echo '{ "status": {}, "dump2": {} }'
        ;;
        call)
                case "$2" in
                        status)
                                json_init
                                json_add_string status available
                                json_dump
                        ;;
                         dump2)
                                cat /tmp/wifi.dataelements.collector.dump2.data 2>/dev/null
                        ;;
                esac
        ;;
esac

