# HG changeset patch # User Daniel O'Connor # Date 1639372901 -37800 # Node ID 7bca87ca06e441378716641a84548dcc1844f00e # Parent 02ba26698696f4da4db84fe32507ca9d6847cf80 Add script to create service, udev and serial-starter entries. diff -r 02ba26698696 -r 7bca87ca06e4 install.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/install.sh Mon Dec 13 15:51:41 2021 +1030 @@ -0,0 +1,30 @@ +#!/bin/sh + +root=$(cd $(dirname $0); pwd) + +# Set VE_SERVICE for our serial cable to inform serial-starter about it +mkdir -p /etc/udev/rules.d +cat >/etc/udev/rules.d/eprodbus.rules </data/conf/serial-starter.d/eprodbus.conf </opt/victronenergy/eprodbus/service/run <&1 +exec /usr/bin/python $root/eprodbus.py TTY +EOF +cat </opt/victronenergy/eprodbus/service/log/run +#!/bin/sh +exec 2>&1 +exec multilog t s25000 n4 /var/log/eprodbus.TTY +EOF +chmod 755 /opt/victronenergy/eprodbus/service/run /opt/victronenergy/eprodbus/service/log/run