Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/bin/bash
  2.  
  3. process=cfheadless
  4. makerun="python2 /home/bitcraze/projects/crazyflie-pc-client/bin/cfheadless -u radio://0/10/250K -i PS3_Mode_2"
  5.  
  6. if ps ax | grep -v grep | grep $process > /dev/null
  7.         then
  8.                 exit
  9.         else
  10.         $makerun &
  11.         fi
  12. exit