Update install remove also-base.conf

master-bu
Alan Johnston 3 months ago committed by GitHub
parent 2695b0939c
commit ce00555317
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -354,20 +354,20 @@ fi
/home/pi/CubeSatSim/config -V 2 # set maxcpus to 2
FILE=/etc/modprobe.d/alsa-base.conf
if [ -f "$FILE" ]; then
echo "$FILE exists."
if [[ $(grep "options snd-usb-audio index=2" $FILE) ]]; then
echo "options snd-usb-audio index=2 already in $FILE";
else
echo "adding options snd-usb-audio index=2 to $FILE";
sudo sed -i '$a options snd-usb-audio index=2' $FILE
echo "options snd-usb-audio index=2" | sudo tee -a $FILE # > /dev/null
fi
else
echo "creating $FILE"
echo "options snd-usb-audio index=2" | sudo tee $FILE # > /dev/null
fi
# FILE=/etc/modprobe.d/alsa-base.conf
# if [ -f "$FILE" ]; then
# echo "$FILE exists."
# if [[ $(grep "options snd-usb-audio index=2" $FILE) ]]; then
# echo "options snd-usb-audio index=2 already in $FILE";
# else
# echo "adding options snd-usb-audio index=2 to $FILE";
# sudo sed -i '$a options snd-usb-audio index=2' $FILE
# echo "options snd-usb-audio index=2" | sudo tee -a $FILE # > /dev/null
# fi
# else
# echo "creating $FILE"
# echo "options snd-usb-audio index=2" | sudo tee $FILE # > /dev/null
# fi
FILE=/home/pi/CubeSatSim/sim.cfg
if [ -f "$FILE" ]; then

Loading…
Cancel
Save

Powered by TurnKey Linux.