plexHelper.sh 552 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # Always re-trigger a mount (to fix links if the network changes)
  3. ~/bin/video/mountMedia
  4. # Wait for the media share to be mounted
  5. if ! ~/bin/video/isMediaMounted; then
  6. sleep 5
  7. exit 1
  8. fi
  9. # Kill previous instances
  10. killall OpenPHT
  11. killall 'Plex Home Theater'
  12. killall 'Plex Media Player'
  13. # Exec
  14. exec '/Applications/Zach/Media/OpenPHT.app/Contents/MacOS/OpenPHT'
  15. #exec '/Applications/Zach/Media/Plex Home Theater.app/Contents/MacOS/Plex Home Theater'
  16. #exec '/Applications/Zach/Media/Plex Media Player.app/Contents/MacOS/Plex Media Player'