diff options
author | James Meyer <james.meyer@operamail.com> | 2009-02-18 04:41:17 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-02-18 04:41:17 (GMT) |
commit | 320944f9a403da05a05bb175945097f12a54a53b (patch) | |
tree | 26a847c254c7657dd9a714756430d70011666563 /abs/extra-testing/oss/oss.install | |
parent | 52e7c7e6d99e3d515936d9c51f9fbe65179e5153 (diff) | |
download | linhes_pkgbuild-320944f9a403da05a05bb175945097f12a54a53b.zip linhes_pkgbuild-320944f9a403da05a05bb175945097f12a54a53b.tar.gz linhes_pkgbuild-320944f9a403da05a05bb175945097f12a54a53b.tar.bz2 |
OSS for 2.6.28
Diffstat (limited to 'abs/extra-testing/oss/oss.install')
-rw-r--r-- | abs/extra-testing/oss/oss.install | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/abs/extra-testing/oss/oss.install b/abs/extra-testing/oss/oss.install new file mode 100644 index 0000000..0107686 --- /dev/null +++ b/abs/extra-testing/oss/oss.install @@ -0,0 +1,39 @@ +_MSG_LIBOSSDIR=" Please note that OSS stores some of its configuration files + at /usr/lib/oss. If you are upgrading from an older OSS + release and it doesn't work properly, try removing that + directory and reinstall this package." + +post_install() { + echo "Creating backup of alsa modules" + KER=`uname -r` + cd /lib/modules/$KER/kernel + tar -cvf alsa-$KER.tar sound + rm -rf sound +# /bin/sh /usr/lib/oss/build/install.sh &> /dev/null + depmod -a + +} + +post_upgrade() { + echo "Running OSS update script..." + KER=`uname -r` + cd /lib/modules/$KER/kernel + if [ -f sound/soundcore.ko ] + then + tar -cvf alsa-$KER.tar sound + rm -rf sound + /bin/true + fi + depmod -a +} + +pre_remove() { + +} + +post_remove() { + + /bin/true +} + +
\ No newline at end of file |