File: remove

package info (click to toggle)
alsa-driver 1.0.8-7sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,840 kB
  • ctags: 43,253
  • sloc: ansic: 257,429; sh: 18,021; makefile: 1,741; perl: 1,316; python: 1,280; xml: 448; awk: 66
file content (15 lines) | stat: -rwxr-xr-x 266 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

LSMOD="/sbin/lsmod"
RMMOD="/sbin/rmmod"

if [ -r /proc/asound/seq/drivers ]; then
  aconnect -x
fi
$LSMOD | grep "^snd" | while read line; do \
  XX=`echo $line | cut -d ' ' -f 1`; \
  $RMMOD $XX; \
done
rmmod isapnp 2> /dev/null
echo "Remove done..."