OpenWrt/Music: Difference between revisions

From Wiki
No edit summary
Line 7: Line 7:
opkg update
opkg update
opkg install kmod-usb-audio kmod-usb-ohci kmod-usb-core kmod-sound-core madplay
opkg install kmod-usb-audio kmod-usb-ohci kmod-usb-core kmod-sound-core madplay
</pre>
</blockquote>
== rc.local add ==
<blockquote>
<pre>
/etc/scripts/madplay.sh &
</pre>
</blockquote>
== create madplay.sh ==
<blockquote>
<pre>
mkdir /etc/scripts
touch madplay.sh
chmod madplay.sh +x
vi madplay.sh
</pre>
</blockquote>
== madplay.sh ==
<blockquote>
<pre>
#! /bin/sh
while true
do
    wget -O - http://192.168.111.10:8000 | madplay -
    sleep 30
done
</pre>
</pre>
</blockquote>
</blockquote>

Revision as of 16:06, 24 September 2012

OpenWrt music streaming

Streaming music via OpenWrt on 4MB flash router

Install packages

opkg update
opkg install kmod-usb-audio kmod-usb-ohci kmod-usb-core kmod-sound-core madplay

rc.local add

/etc/scripts/madplay.sh &

create madplay.sh

mkdir /etc/scripts
touch madplay.sh
chmod madplay.sh +x
vi madplay.sh

madplay.sh

#! /bin/sh

while true
 do
    wget -O - http://192.168.111.10:8000 | madplay -
    sleep 30
 done