kill in stop script

This commit is contained in:
2015-11-15 23:18:09 +01:00
parent 1e984c2b2e
commit c0df1a1aed
3 changed files with 5 additions and 15 deletions
+2 -1
View File
@@ -10,9 +10,10 @@ MY_PATH="$(pwd)"
### PRORGAM
echo "Action: $1"
#echo "Action: $1"
case $1 in
"play") sh $MY_PATH/bin/start_radio.sh ;;
"stop") sh $MY_PATH/bin/stop_radio.sh ;;
*) echo "INVALID ACTION!" ;;
esac
+2
View File
@@ -13,3 +13,5 @@ MY_PATH="$(pwd)"
echo
echo "${BGre}Stop playing ...${RCol}"
echo
pkill -f mplayer