summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/oss-sound/oss-linux-free/oss.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-23 03:47:32 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-23 03:47:32 (GMT)
commita73aa26202d19da424722bcf1285b566dbfd9d8d (patch)
treecc24843c13127ef3b5d8207aa7c82be0b1f00d37 /abs/mv-core/oss-sound/oss-linux-free/oss.install
parenta1219610c24fc89e2e4c1b81194fe25e40933cf5 (diff)
downloadlinhes_pkgbuild-a73aa26202d19da424722bcf1285b566dbfd9d8d.zip
linhes_pkgbuild-a73aa26202d19da424722bcf1285b566dbfd9d8d.tar.gz
linhes_pkgbuild-a73aa26202d19da424722bcf1285b566dbfd9d8d.tar.bz2
add mythvantage specific packages.
Diffstat (limited to 'abs/mv-core/oss-sound/oss-linux-free/oss.install')
-rw-r--r--abs/mv-core/oss-sound/oss-linux-free/oss.install40
1 files changed, 40 insertions, 0 deletions
diff --git a/abs/mv-core/oss-sound/oss-linux-free/oss.install b/abs/mv-core/oss-sound/oss-linux-free/oss.install
new file mode 100644
index 0000000..e17dd0e
--- /dev/null
+++ b/abs/mv-core/oss-sound/oss-linux-free/oss.install
@@ -0,0 +1,40 @@
+post_install() {
+ echo "Probing soundcards, change /usr/lib/oss/etc/installed_drivers as needed afterwards if
+ you want to disable any of the OSS modules. You can run '/usr/sbin/ossdetect -v' at any time
+ if you have changed soundcards."
+ /usr/sbin/ossdetect -v
+ /sbin/ldconfig
+ /bin/true
+}
+
+pre_upgrade() {
+ /etc/rc.d/oss-linux-free stop
+ /bin/true
+}
+
+post_upgrade() {
+ /etc/rc.d/oss-linux-free start
+ echo "If you changed your soundcard, reprobe for soundcards using '/usr/sbin/ossdetect -v'."
+ /sbin/ldconfig # We need to run this since libflashsupport.so is installed on x86
+ /bin/true
+}
+
+pre_remove() {
+ /etc/rc.d/oss-linux-free stop
+ sh /usr/lib/oss/scripts/restore_drv.sh
+}
+
+post_remove() {
+ echo "/usr/lib/oss/ will still contain files after removal as those files were generated by OSS
+ after instalation. Delete them manually unless you want to keep them for later use."
+ if [ `uname -m` == "i686" ]; then
+ rm -f /usr/lib/libflashsupport.so
+ fi
+ /bin/true
+}
+
+op=$1
+shift
+[ "$(type -t "$op")" = "function" ] && $op "$@"
+
+# vim:set ts=2 sw=2 et: