pi@rpi-artipprog-lcd:~ $ pwd
/home/pi
pi@rpi-artipprog-lcd:~ $ wget https://github.com/vanvught/rpidmx512/blob/master/linux_rpi_artipprog/linux_rpi_artipprog?raw=true -O linux_rpi_artipprog
pi@rpi-artipprog-lcd:~ $ ./linux_rpi_artipprog -h
usage:
./linux_rpi_artipprog -i input_device [if_name:ip]
-i input_device supported options: af , kb , ir and bw
if_name:ip interface name (examples: eth0, wan0) or ip address
af = Adafruit Bonnet
kb = Keyboard
ir = Infrared remote control
bw = BitWizard User-Interface
pi@rpi-artipprog-lcd:~ $ vi start.sh
#!/bin/bash
_IP=$(hostname -I) || true
while [ "$_IP" == "" ]
do
sleep 1
_IP=$(hostname -I) || true
done
sleep 2
sudo ./home/pi/linux_rpi_artipprog -i af $_IP > /tmp/linux_rpi_artipprog.out
pi@rpi-artipprog-lcd:~ $ chmod a+x start.sh
pi@rpi-artipprog-lcd:~ $ sudo vi /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
./home/pi/start.sh &
exit 0