OpenWrt/Music

From Wiki

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

add to "rc.local" before exit

/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