You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
302 B

#!/bin/sh
. /etc/init.d/globals
usage() {
echo "[${BASENAME}] Usage: $0 {start [url]|stop}"
}
case $1 in
start)
if [ $# -ne 2 ]; then
usage
exit 1
fi
streamripper "${2}" -a -s -d "$(get_setting network_nfs_streamripperdir)" &
;;
stop)
killall streamripper
;;
*)
usage
;;
esac