From da372a2d15b96ecde24bf92da7380fe9f711737e Mon Sep 17 00:00:00 2001 From: Andreas Billmeier Date: Tue, 16 Jul 2019 18:58:27 +0200 Subject: [PATCH] add my socat start skript (for the ZWaveMe UZB1 Stick) --- etc/init.d/socat-zwave | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 etc/init.d/socat-zwave diff --git a/etc/init.d/socat-zwave b/etc/init.d/socat-zwave new file mode 100755 index 000000000..39d4f0bb1 --- /dev/null +++ b/etc/init.d/socat-zwave @@ -0,0 +1,26 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# socat pty,link=/dev/ttyUSB0,raw,user=homeassistant,group=dialout,mode=777 tcp:172.16.3.199:3333 +description="Tunnel to MS3 for making a Z-wave Socket" + +user="root:root" + +stdoutlog="/var/log/homeassistant/socat.log" + +start_stop_daemon_args="--user $user --stdout $stdoutlog" + +command="/usr/bin/socat" +command_args=" + pty,link=/dev/ttyUSB0,raw,user=homeassistant,group=dialout,mode=777 + tcp:172.16.3.199:3333 +" + +command_background=yes +pidfile=/run/socat-zwave.pid + +depend() { + need net + after bootmisc +}