Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ########################################################
- # cli_radio #
- # based on IceFox radio-select script #
- # <http://www.linuxtrack.com/t1214-radioselect-sh.htm> #
- ########################################################
- # set colors
- RED='\e[41m'
- BLUE='\e[44m'
- CYAN='\e[46m'
- NC='\e[0m'
- # set player
- PLAYER="/usr/bin/mplayer"
- # verify if $PLAYER is installed
- if [ -e $PLAYER ]; then
- # stop current $PLAYER session
- if [ "$(pidof mplayer)" ]; then
- killall mplayer
- fi
- while true; do
- clear
- echo ""
- echo " ·····················································"
- echo " · select a station and play ·"
- echo " · ·"
- echo -e " · $CYAN[space]$NC to pause, $CYAN[q]$NC to stop, $CYAN[Ctrl]+[c]$NC to quit ·"
- echo " ·····················································"
- echo ""
- echo " ·····················································"
- echo -e " · $BLUE 1 $NC 1.FM $BLUE 2 $NC Audio Ink ·"
- echo -e " · $BLUE 3 $NC Gultch-radio $BLUE 4 $NC The Buzz ·"
- echo -e " · $BLUE 5 $NC Power_Rock $BLUE 6 $NC Schizophonic ·"
- echo -e " · $BLUE 7 $NC 80s radio $BLUE 8 $NC Rock-Radio ·"
- echo -e " · $BLUE 9 $NC 90s Radio $BLUE 10 $NC Radio Xenu ·"
- echo -e " · $BLUE 11 $NC WFMU $BLUE 12 $NC Rage Radio ·"
- echo -e " · $BLUE 13 $NC KikiNovak Radio $BLUE 14 $NC AGX ·"
- echo -e " · $BLUE 15 $NC Progressive $BLUE 16 $NC BadRok Radio ·"
- echo -e " · $BLUE 17 $NC Classic Gator Rock $BLUE 18 $NC All Dixie Rock ·"
- echo -e " · $BLUE 19 $NC AMPZ Adult $BLUE 20 $NC 106 Radio ·"
- echo " ·····················································"
- echo ""
- echo -e " select a $BLUE number $NC from 1 to 20 then hit $CYAN[Enter]$NC"
- echo ""
- read choix
- case $choix in
- 1)
- $PLAYER http://205.164.35.31:80
- ;;
- 2)
- $PLAYER http://s4.total-streaming.com:9150
- ;;
- 3)
- $PLAYER http://66.225.205.72:80/
- ;;
- 4)
- $PLAYER http://108.61.73.120:14126
- ;;
- 5)
- $PLAYER http://192.240.102.195:9150/stream
- ;;
- 6)
- $PLAYER http://sc15.shoutcaststreaming.us:8030/1/
- ;;
- 7)
- $PLAYER http://pub7.rockradio.com:80/rr_alternative80s
- ;;
- 8)
- $PLAYER http://pub7.rockradio.com:80/rr_modernrock
- ;;
- 9)
- $PLAYER http://pub7.rockradio.com:80/rr_alternative90s
- ;;
- 10)
- $PLAYER http://radioxenu.com:8000/relay
- ;;
- 11)
- $PLAYER http://stream0.wfmu.org/freeform-128k
- ;;
- 12)
- $PLAYER http://viadj.viastreaming.net:7197
- ;;
- 13)
- $PLAYER http://www.radionovak.com:8000/radionovak.ogg
- ;;
- 14)
- $PLAYER http://198.154.106.102:8484
- ;;
- 15)
- $PLAYER http://pub7.rockradio.com:80/rr_progressiverock
- ;;
- 16)
- $PLAYER http://s7.viastreaming.net:8100/
- ;;
- 17)
- $PLAYER http://205.164.35.13:80
- ;;
- 18)
- $PLAYER http://199.195.194.92:8040
- ;;
- 19)
- $PLAYER http://67.213.213.137:8100
- ;;
- 20)
- echo ""
- echo "http://106radio.serverroom.us:9106"
- echo ""
- read customlink
- $PLAYER http://106radio.serverroom.us:9106
- ;;
- *)
- echo -e "$RED wrong choice $NC"
- echo "try again..."
- echo ""
- sleep 2
- clear
- ;;
- esac
- done
- else
- echo " this script need mplayer"
- echo " install it or change the PLAYER"
- echo "exiting ..."
- exit 0
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement