#!/bin/bash if ! grep "luma.led_matrix" /etc/rc.local >/dev/null then sudo bash -c 'sed -i -e "s/exit 0//g" /etc/rc.local' sudo bash -c 'echo "python3 /mnt/dietpi_userdata/luma.led_matrix/examples/silly_clock.py &" >>/etc/rc.local' sudo bash -c 'echo "exit 0" >>/etc/rc.local' fi