summaryrefslogtreecommitdiff
path: root/openwrt/dolmetsch-ctl/files/dolmetschctl-client.init
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/dolmetsch-ctl/files/dolmetschctl-client.init')
-rwxr-xr-xopenwrt/dolmetsch-ctl/files/dolmetschctl-client.init14
1 files changed, 14 insertions, 0 deletions
diff --git a/openwrt/dolmetsch-ctl/files/dolmetschctl-client.init b/openwrt/dolmetsch-ctl/files/dolmetschctl-client.init
new file mode 100755
index 0000000..837d427
--- /dev/null
+++ b/openwrt/dolmetsch-ctl/files/dolmetschctl-client.init
@@ -0,0 +1,14 @@
+#!/bin/sh /etc/rc.common
+
+USE_PROCD=1
+
+PROG=/usr/bin/dolmetschctl-client
+
+start_service() {
+ procd_open_instance
+ procd_set_param command $PROG -m hw:0,0,0 -o 192.168.1.27:1234
+ procd_set_param respawn
+ procd_set_param stdout 1
+ procd_set_param stderr 1
+ procd_close_instance
+}