#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#ZDEM poka zapustitsya inet
inet=10;
while [ $inet -ne 1 ] ; do
if (ping -c 2 -q
www.yandex.ru | grep -q "0% packet loss" ) ; then
echo "INET START ";
inet=1;
continue;
else.
echo "INET NOT START".
fi
sleep 10 # Sleep 10 sec
done
echo "Start network Programm"
getstream -c /home/nexl/radiomy.conf -dd
sleep 10
cvlc -vvv
http://127.0.0.1:8081/radio/love --sout '#standard{access=http,mux=wav,dst=:8000 }'&
sleep 10
cvlc -vvv
http://127.0.0.1:8081/radio/dacha --sout '#standard{access=http,mux=wav,dst=:8001 }'&
sleep 10
cvlc -vvv
http://127.0.0.1:8081/radio/dpesni --sout '#standard{access=http,mux=wav,dst=:8002 }'&
exit 0