Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tools/kmod_scripts/sof_bootloop.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

enable_pulseaudio="; autospawn = yes"
disable_pulseaudio=" autospawn = no"

sed -i "s/$enable_pulseaudio/$disable_pulseaudio/" /etc/pulse/client.conf
killall pulseaudio

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has got to be one of the silliest fixes I've ever seen. You just erased the entire file with this, so all other settings are gone. Seriously?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@plbossart updated


set -e

MAXLOOPS=100
Expand All @@ -11,3 +17,5 @@ while [ $COUNTER -lt $MAXLOOPS ]; do
dmesg > boot_$COUNTER.bootlog
let COUNTER+=1
done

sed -i "s/$disable_pulseaudio/$enable_pulseaudio/" /etc/pulse/client.conf