#!/bin/bash sudo sed -i '/^sleep 2/a python /home/pi/fg-test/factory-provision.py' /home/pi/fg-test/stop-rainbow.sh