Script change for compatibility with Clear Linux

I would like to know how to change this script to provide compatibility within Clear Linux. It was written for a Debian install and provides an audio setup as you will note in the script.