ices2-start.bash 262 B

1234567891011121314151617
  1. #!/bin/bash
  2. ## Inicia um serviço ices2 pré configurado
  3. CANAL=""
  4. ICES2="/usr/bin/ices2"
  5. if [ ! -z $1 ]
  6. then
  7. CANAL="${1}"
  8. ICES2="`whereis ices2-${CANAL} | awk '{ print $2}'`"
  9. ${ICES2} ${HOME}/ices2.d/${CANAL}-playlist.xml
  10. else
  11. echo "E o parâmetro?"
  12. fi