├── oui-lookup
├── files
│ ├── oui.acl
│ ├── .oui.lua.swp
│ ├── oui.sh
│ └── oui.lua
├── README.md
└── Makefile
├── juci-full-openwrt
├── files
│ ├── usr
│ │ └── lib
│ │ │ └── juci
│ │ │ └── acl
│ │ │ └── user-admin.acl
│ └── etc
│ │ └── uci-defaults
│ │ └── 40-juci-openwrt-config
└── Makefile
├── juci-example-standalone
├── src
│ ├── src
│ │ └── pages
│ │ │ ├── juci-standalone-page.js
│ │ │ └── juci-standalone-page.html
│ └── po
│ │ └── en.po
└── Makefile
├── juci-lighttpd
├── files
│ ├── conf.d
│ │ ├── 31-cgi.conf
│ │ └── 31-proxy.conf
│ ├── lighttpd.init
│ └── lighttpd.conf
└── Makefile
├── speedtest-cli
├── files
│ ├── speedtest.acl
│ ├── speedtest.sh
│ └── speedtest.lua
├── README.md
└── Makefile
├── speedtest-cpp
├── files
│ ├── speedtest.acl
│ ├── speedtest.sh
│ └── speedtest.lua
├── README.md
└── Makefile
├── orange-rpcd
├── files
│ ├── orange.config
│ ├── orange.init
│ └── access.json
├── Config.in
└── Makefile
├── juci
├── juci.init
└── Makefile
├── luaposix33
├── patches
│ └── 10-fix-pthread-issues.patch
└── Makefile
├── openwrt-bootstrap.sh
├── .travis.yml
├── libblobpack
└── Makefile
├── libutype
└── Makefile
├── libusys
└── Makefile
└── juci-bwc
└── Makefile
/oui-lookup/files/oui.acl:
--------------------------------------------------------------------------------
1 | rpc /oui lookup x
2 |
--------------------------------------------------------------------------------
/juci-full-openwrt/files/usr/lib/juci/acl/user-admin.acl:
--------------------------------------------------------------------------------
1 | menu * * r
2 |
--------------------------------------------------------------------------------
/oui-lookup/README.md:
--------------------------------------------------------------------------------
1 | OUI Lookup
2 | =========
3 |
4 | MAC Lookup service
5 |
--------------------------------------------------------------------------------
/juci-example-standalone/src/src/pages/juci-standalone-page.js:
--------------------------------------------------------------------------------
1 | /* Put code here */
2 |
--------------------------------------------------------------------------------
/juci-lighttpd/files/conf.d/31-cgi.conf:
--------------------------------------------------------------------------------
1 |
2 | $HTTP["url"] =~ "^/cgi-bin/" {
3 | cgi.assign = ("" => "")
4 | }
5 |
--------------------------------------------------------------------------------
/speedtest-cli/files/speedtest.acl:
--------------------------------------------------------------------------------
1 | rpc /speedtest start x
2 | rpc /speedtest status x
3 | rpc /speedtest stop x
4 |
--------------------------------------------------------------------------------
/oui-lookup/files/.oui.lua.swp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkschreder/juci-openwrt-feed/HEAD/oui-lookup/files/.oui.lua.swp
--------------------------------------------------------------------------------
/speedtest-cpp/files/speedtest.acl:
--------------------------------------------------------------------------------
1 | rpc /speedtest start x
2 | rpc /speedtest status x
3 | rpc /speedtest stop x
4 | rpc /speedtest run x
5 |
--------------------------------------------------------------------------------
/juci-example-standalone/src/src/pages/juci-standalone-page.html:
--------------------------------------------------------------------------------
1 |
2 | Example Page
3 | Hello World!
4 |
5 |
6 |
--------------------------------------------------------------------------------
/juci-lighttpd/files/conf.d/31-proxy.conf:
--------------------------------------------------------------------------------
1 |
2 | $HTTP["url"] =~ "^/websocket" {
3 | proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "5303" ) ) )
4 | proxy.header = ( "upgrade" => "enable" )
5 | }
6 |
--------------------------------------------------------------------------------
/orange-rpcd/files/orange.config:
--------------------------------------------------------------------------------
1 | config login admin
2 | list acls '*'
3 | option comment 'This is a default user that comes with orange package. You probably want to reconfigure this as part of your own personalized uci-defaults script.'
4 |
--------------------------------------------------------------------------------
/oui-lookup/files/oui.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/lua
2 |
3 | local mac = arg[1];
4 | local f = assert(io.open("/usr/share/macdb/db.txt", "r"));
5 | string.gsub(mac, ":", "");
6 | mac = mac:sub(0, 6);
7 | local line = f:read("*l");
8 | while line do
9 | if(line:sub(0, 6) == mac) then print(line:sub(8)); break; end
10 | line = f:read("*l");
11 | end
12 |
--------------------------------------------------------------------------------
/orange-rpcd/Config.in:
--------------------------------------------------------------------------------
1 | config ORANGE_PARALLEL
2 | depends on PACKAGE_orange-rpcd
3 | bool "Enable parallel processing of requests"
4 | default y
5 |
6 | config ORANGE_BUSYBOX_OPTIONS
7 | depends on PACKAGE_orange-rpcd
8 | bool "Enable busybox sha1sum support for orange-rpcd"
9 | default y
10 | select BUSYBOX_CUSTOM
11 | select BUSYBOX_CONFIG_SHA1SUM
12 | help
13 | Select needed busybox sha1sum option for orange-rpcd.
14 |
--------------------------------------------------------------------------------
/juci-lighttpd/files/lighttpd.init:
--------------------------------------------------------------------------------
1 | #!/bin/sh /etc/rc.common
2 | # Copyright (C) 2006-2011 OpenWrt.org
3 |
4 | SERVICE_USE_PID=1
5 |
6 | START=50
7 |
8 | start() {
9 | user_exists http || user_add http
10 | [ -d /var/log/lighttpd ] || {
11 | mkdir -m 0775 -p /var/log/lighttpd
12 | chgrp www-data /var/log/lighttpd
13 | }
14 | service_start /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
15 | }
16 |
17 | stop() {
18 | service_stop /usr/sbin/lighttpd
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/juci/juci.init:
--------------------------------------------------------------------------------
1 | #!/bin/sh /etc/rc.common
2 |
3 | START=14
4 | STOP=96
5 |
6 | USE_PROCD=1
7 | NAME=juci
8 |
9 | start_service() {
10 | # this will simply update index.html to include any files that are for some reason not included
11 | # a good way to make sure all plugins are properly included at each boot
12 | juci-update
13 | }
14 |
15 | stop() {
16 | service_stop /sbin/juci
17 | }
18 |
19 | service_triggers()
20 | {
21 | procd_add_reload_trigger juci
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/orange-rpcd/files/orange.init:
--------------------------------------------------------------------------------
1 | #!/bin/sh /etc/rc.common
2 |
3 | START=12
4 |
5 | USE_PROCD=1
6 | NAME=orangerpcd
7 | PROG=/usr/bin/orangerpcd
8 |
9 | start_service() {
10 | procd_open_instance
11 | procd_set_param respawn
12 | procd_set_param command $PROG -p /usr/lib/orange/api/
13 | procd_close_instance
14 | }
15 |
16 | stop_service() {
17 | service_stop $PROG
18 | }
19 |
20 | restart_service() {
21 | stop_service
22 | start_service
23 | }
24 |
25 | reload() {
26 | service_reload $PROG
27 | }
28 |
--------------------------------------------------------------------------------
/juci-example-standalone/src/po/en.po:
--------------------------------------------------------------------------------
1 | msgid ""
2 | msgstr ""
3 | "Project-Id-Version: \n"
4 | "POT-Creation-Date: \n"
5 | "PO-Revision-Date: \n"
6 | "Last-Translator: \n"
7 | "Language-Team: \n"
8 | "Language: en\n"
9 | "MIME-Version: 1.0\n"
10 | "Content-Type: text/plain; charset=UTF-8\n"
11 | "Content-Transfer-Encoding: 8bit\n"
12 | "X-Generator: Poedit 1.7.5\n"
13 |
14 | msgid "juci-standalone-page-title"
15 | msgstr "Example Standalone Plugin"
16 |
17 | msgid "menu-juci-standalone-page-title"
18 | msgstr "Example Standalone"
19 |
20 |
--------------------------------------------------------------------------------
/speedtest-cli/README.md:
--------------------------------------------------------------------------------
1 | Speedtest
2 | =========
3 |
4 | This is a speedtest client written in python which uses speedtest.net.
5 |
6 | RPC backend:
7 |
8 | /speedtest
9 | start - starts a new speedtest
10 | stop - aborts a speedtest
11 | status - prints last speedtest status
12 |
13 | RPC output:
14 |
15 | call "/speedtest" status '{}'
16 | {
17 | "result": {
18 | "timestamp":