#!/bin/sh
if [ $# = 0 ] ; then
	echo netaudio station [ command ... ]
	echo
	echo Without argument, netaudio start a shell by redirecting
	echo the audio,cdrom and floppy management to \"station\"
	echo Use \"exit\" to terminate this shell
	echo
	echo With argument, it executes the command by redirecting
	echo the audio,cdrom and floppy management to \"station\".
else
	export LD_PRELOAD=/usr/lib/netaudio.so
	export NETAUDIOHOST=$1
	shift
	if [ $# = 0 ] ; then
		exec $SHELL
	else
		exec $*
	fi
fi

