clock_autostart.sh 281 B

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