aboutsummaryrefslogtreecommitdiff
path: root/audio/linux-f10-alsa-plugins-oss/pkg-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'audio/linux-f10-alsa-plugins-oss/pkg-deinstall')
-rw-r--r--audio/linux-f10-alsa-plugins-oss/pkg-deinstall16
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/linux-f10-alsa-plugins-oss/pkg-deinstall b/audio/linux-f10-alsa-plugins-oss/pkg-deinstall
new file mode 100644
index 000000000000..22b3172b23f6
--- /dev/null
+++ b/audio/linux-f10-alsa-plugins-oss/pkg-deinstall
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+case "$2" in
+ POST-DEINSTALL)
+ conf=${PKG_PREFIX}/etc/asound.conf
+ if [ ! -f "$conf" ]; then
+ exit 1
+ fi
+ grep -v '/etc/alsa/pcm/pcm-oss\.conf' <$conf >/tmp/asound.conf.new
+ ;;
+ *)
+ exit 0
+ ;;
+esac
+
+exit 0