How to install the MIC+ bash script in a root session?

in the bash there is this :

sudocheck() {
if [ $(id -u) -ne 0 ]; then
echo “script starts”

else
    echo -e "Install CAN NOT be run as root. Try without sudo\n"
    exit 1
fi

}
My question is quite simple I need to run the MIC+ V2 in a root session please how to install it in root ?
Many thanks for any reply :slight_smile:

Hi

The script is just adding a few lines in the /etc/asound.conf try to edit it yourself to match :

pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}

then
reboot
All I2S drivers are the same so this guide is also applicable ( LINUX 5.4 AND HIGHER)

https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/

hello, many thanks for the reply I will try and I’ll feed back the result !