summaryrefslogtreecommitdiff
path: root/examples/ucode/example-plugin.uc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-08-12 21:11:47 +0200
committerJo-Philipp Wich <jo@mein.io>2022-08-12 21:14:27 +0200
commitae5afea28375e28510f74fd404925ec9b2c4f430 (patch)
treeb7c10fc0329d6fd03bcb63ff17d33f0bec0579f1 /examples/ucode/example-plugin.uc
parent1c4825739b3cf19fe429c19eafa82a7f27aa99b3 (diff)
downloadrpcd-ae5afea28375e28510f74fd404925ec9b2c4f430.tar.gz
ucode: parse ucode plugin scripts in raw mode, init search path
It makes little sense to execute rpcd ucode plugin scripts in template mode since those scripts are supposed to output structured JSON data, so change the parse config to compile scripts in raw mode. Also initialize the default library search path which is required in recent ucode versions. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'examples/ucode/example-plugin.uc')
-rw-r--r--examples/ucode/example-plugin.uc2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/ucode/example-plugin.uc b/examples/ucode/example-plugin.uc
index a336671..a96b703 100644
--- a/examples/ucode/example-plugin.uc
+++ b/examples/ucode/example-plugin.uc
@@ -1,5 +1,3 @@
-{%
-
'use strict';
let ubus = require('ubus').connect();