From 936c51bb9671ad0e3d8d165c621acac1b728969d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 17 Jan 2007 20:36:30 +0000 Subject: [PATCH] oops... forgot the files :) SVN-Revision: 6119 --- sound/shell-fm/files/shell-fm.init | 13 +++++++++++++ sound/shell-fm/files/shell-fm.rc | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 sound/shell-fm/files/shell-fm.init create mode 100644 sound/shell-fm/files/shell-fm.rc diff --git a/sound/shell-fm/files/shell-fm.init b/sound/shell-fm/files/shell-fm.init new file mode 100644 index 000000000..0e68d34d7 --- /dev/null +++ b/sound/shell-fm/files/shell-fm.init @@ -0,0 +1,13 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2006 OpenWrt.org + +START=99 +start() { + [ -d /tmp/.shell-fm ] || mkdir /tmp/.shell-fm + [ -L /tmp/.shell-fm/shell-fm.rc ] || ln -s /etc/shell-fm.rc /tmp/.shell-fm/shell-fm.rc + HOME=/tmp shell-fm -d +} + +stop() { + echo "quit" | telnet localhost 54311 +} diff --git a/sound/shell-fm/files/shell-fm.rc b/sound/shell-fm/files/shell-fm.rc new file mode 100644 index 000000000..e1f708c47 --- /dev/null +++ b/sound/shell-fm/files/shell-fm.rc @@ -0,0 +1,10 @@ +username = username +password = password +#np-cmd = netmsg "%a - %t" +default-radio = lastfm://artist/Nightwish/similarartists +t-color = 1;32 # light green track titles +a-color = 0;32 # dark green track artist names +s-color = 1;37 # white station names +bind = 0.0.0.0 +extern = madplay -q - +extern-restart = 1 -- 2.30.2