Skip to content

Instantly share code, notes, and snippets.

@zeptometer
Created August 27, 2012 09:13
Show Gist options
  • Select an option

  • Save zeptometer/3486842 to your computer and use it in GitHub Desktop.

Select an option

Save zeptometer/3486842 to your computer and use it in GitHub Desktop.
#!/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
libdir=${prefix}/lib32/
LD_PRELOAD=${libdir}/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} exec "$@"
else
echo "Warning: /proc/asound not found. Running without ALSA wrapper."
exec "$@"
fi
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment