From a72c8af2a59a8103b54d3cd7e644e744d6c1ac42 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 14 Oct 2015 14:53:53 +0200 Subject: added first version of an openwrt package --- openwrt/dolmetsch-ctl/files/dolmetschctl-client.init | 14 ++++++++++++++ openwrt/dolmetsch-ctl/files/dolmetschctl.init | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 openwrt/dolmetsch-ctl/files/dolmetschctl-client.init create mode 100755 openwrt/dolmetsch-ctl/files/dolmetschctl.init (limited to 'openwrt/dolmetsch-ctl/files') 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 +} -- cgit v1.2.3