I was having issues with pulseaudio and had to every time type in 'pulseaudio -D' in terminal each time I booted up. However, this was quite frustrating and so I was looking forward to make pulseaudio to startup each time at bootup by editing .bashrc
I added these lines at the end of the .bashrc file :
until [[ `ps aux | grep "pulseaudio -D" | grep -v grep | wc -l` -eq 1 ]]
do
pulseaudio -D >/dev/null 2>&1
if [[ `ps aux | grep "pulseaudio -D" | grep -v grep | wc -l` -gt 1 ]]
then
kill -9 `pidof pulseaudio`
pulseaudio -D
fi
But since after that I have been getting the error of 'unexpected end of file' as enclosed in the Screenshot.
How can I solve it?
done
afterfi
to close thedo
loop. – Terrance Jan 03 '18 at 14:33