#!/bin/bash

tar -C /etc/opt/ -xzf elodriver.tgz
mv /etc/opt/bin-mt-usb /etc/opt/elo-mt-usb

cd /etc/opt/elo-mt-usb
chmod 777 *
chmod 444 *.txt

cp /etc/opt/elo-mt-usb/99-elotouch.rules /etc/udev/rules.d

cd /etc/opt/elo-mt-usb/elo_mt_input_mod_src
make
make install
cp /etc/opt/elo-mt-usb/elo.service /etc/systemd/system/
systemctl enable elo.service


