Skip to content

Instantly share code, notes, and snippets.

@possan
Created January 25, 2022 19:54
Show Gist options
  • Save possan/86baef263583868a14926dc13c662f77 to your computer and use it in GitHub Desktop.
Save possan/86baef263583868a14926dc13c662f77 to your computer and use it in GitHub Desktop.

start.sh

#!/bin/sh
cd ~/dmx-playback/apps/build/
artnet-playback/artnet-playback sample-config.json

Append to ~/.bashrc:

if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
    echo "Hello SSH"
else
    echo "Hello local console"
    /home/pi/start.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment