#!/bin/sh

# A simple script to facilitate the use of the OSS compatibility library.
# Usage:
#	aoss <command> <command options and arguments>

if [ -d /proc/asound ]; then
  prefix=/usr
  exec_prefix=/usr
  LD_PRELOAD=${exec_prefix}/\$LIB/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} exec "$@"
else
  exec "$@"
fi
exit 1
