mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
25 lines
561 B
Bash
Executable file
25 lines
561 B
Bash
Executable file
#!/bin/sh
|
|
|
|
. /usr/share/libubox/jshn.sh
|
|
|
|
case "$1" in
|
|
list)
|
|
echo '{ "list" : {}, "get": {"path":"str"}}'
|
|
;;
|
|
call)
|
|
case "$2" in
|
|
list)
|
|
cat /tmp/proxd.data 2>/dev/null
|
|
;;
|
|
get)
|
|
read input;
|
|
json_load "$input"
|
|
json_get_var path path
|
|
json_init
|
|
json_add_string "Description" "$path"
|
|
json_dump >/dev/console
|
|
json_dump
|
|
;;
|
|
esac
|
|
;;
|
|
esac
|