Created
August 27, 2012 09:13
-
-
Save zeptometer/3486842 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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