summaryrefslogtreecommitdiff
path: root/openwrt/dolmetsch-ctl/files
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/dolmetsch-ctl/files')
-rwxr-xr-xopenwrt/dolmetsch-ctl/files/dolmetschctl-client.init14
-rwxr-xr-xopenwrt/dolmetsch-ctl/files/dolmetschctl.init14
2 files changed, 28 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
+}
diff --git a/openwrt/dolmetsch-ctl/files/dolmetschctl.init b/openwrt/dolmetsch-ctl/files/dolmetschctl.init
new file mode 100755
index 0000000..7a2bfc9
--- /dev/null
+++ b/openwrt/dolmetsch-ctl/files/dolmetschctl.init
@@ -0,0 +1,14 @@
+#!/bin/sh /etc/rc.common
+
+USE_PROCD=1
+
+PROG=/usr/bin/dolmetschctl
+
+start_service() {
+ procd_open_instance
+ procd_set_param command $PROG -x qu24 -d hw:0,0,0 -o 1234
+ procd_set_param respawn
+ procd_set_param stdout 1
+ procd_set_param stderr 1
+ procd_close_instance
+}