florian 020f457c38 shairport: Update shairport to final version 1.0
James Laird (abrasive), together with some other developers, has updated
shairport fixing several bugs and adding several improvements.
https://github.com/abrasive/shairport/tree/master

This patch changes the package source to his repo and deletes the unneeded IPv6
patch.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[florian: fix subject and reformat commit message]
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@40720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-08 00:57:29 +00:00

35 lines
530 B
Bash

#!/bin/sh /etc/rc.common
START=80
DAEMON="/usr/sbin/shairport"
config_shairport() {
local cfg="$1"
local args=""
config_get name "$cfg" name
config_get port "$cfg" port
config_get buffer "$cfg" buffer
[ -z $name ] && name="AirPort"
args="$args -a $name"
[ ! -z "$port" ] && args="$args -p $port"
[ -z $buffer ] && buffer="256"
args="$args -b $buffer"
args="$args -d"
service_start $DAEMON $args
}
start() {
config_load shairport
config_foreach config_shairport shairport
}
stop() {
service_stop $DAEMON
}