summaryrefslogtreecommitdiff
path: root/openwrt/dolmetsch-ctl/files
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-14 14:53:53 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-10-14 14:53:53 +0200
commita72c8af2a59a8103b54d3cd7e644e744d6c1ac42 (patch)
tree5752098ef4caa5541e1e33fa6fcc2b11d879a0f1 /openwrt/dolmetsch-ctl/files
parentmerged app sources to single folder (diff)
added first version of an openwrt package
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
+}