#!/bin/bash

set -x
sudo add-apt-repository -y ppa:seahawk1986-hotmail/lcdproc-futaba-mdm166a
sudo apt-get update
sudo apt-get -y install lcdproc
zcat /usr/share/doc/lcdproc/LCDd.conf.gz | sed 's/^Driver=.*/Driver=mdm166a/' | sudo tee /etc/LCDd.conf
sudo systemctl enable LCDd.service
sudo systemctl start LCDd.service 
set +x
