summaryrefslogblamecommitdiffstats
path: root/sbin/asound_pulse_disable.sh
blob: ff929e2592b79bbd153620a9c3292c9c23e87991 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                                                                                                     
#!/bin/sh

asound_backup.sh

tmp_file="`mktemp`"
echo "`cat /etc/asound.conf`
" | sed "/pcm.\!default/,/}/{H;d};/ctl.\!default/,/}/{H;d};x;/\n[^#\n]*pcm.\!default.*\n[^#\n]*type pulse.*\n[^#\n]*\}/{d};/\n[^#\n]*ctl.\!default.*\n[^#\n]*type pulse.*\n[^#\n]*\}/{d}" > $tmp_file
cat -s $tmp_file > /etc/asound.conf