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>
== add to "rc.local" before exit ==
<blockquote>
<pre>
/etc/scripts/madplay.sh &
</pre>
</pre>
</blockquote>
</blockquote>

Revision as of 18:14, 27 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

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