updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / nforce-nvsound / nforce.install
blob13524292f786bd48ed42967e2ef892264092e497
1 post_install() {
2   echo -------------------------------
3   echo By using this package you accept the NVIDIA license, 
4   echo which has been installed in /usr/share/licenses/nforce/LICENSE
5   echo If you do not accept this license, you must remove the package immediately.
6   echo If you need more information about setting up nforce drivers have a look at:
7   echo 'http://wiki.archlinux.org/index.php/Nforce_Drivers'
8   echo -------------------------------
10   KERNEL_VERSION='2.6.28-ARCH'
11   depmod -v $KERNEL_VERSION  > /dev/null 2>&1            
12   modprobe -v nvsound > /dev/null 2>&1
13   echo ----------------------------------
14   echo You can set the mixer level and speaker arrangement by running nvmixer
15   echo from the nvida-nforce-utils package.  To store your settings run
16   echo /usr/bin/nvmix-reg -f /etc/nvmixrc -S after setting your mixer values.  
17 #  echo For now the post setup process runs
18 #  echo nvmixer once to set initial state, and stores that state
19   echo ----------------------------------
20 #  nvmixer > /dev/null 2>&1
21 #  /usr/bin/nvmix-reg -f /etc/nvmixrc -S
24 post_upgrade() {
25  post_install $1
28 # arg 1:  the old package version
29 post_remove() {
30   KERNEL_VERSION='2.6.28-ARCH'
31   depmod -v $KERNEL_VERSION      > /dev/null 2>&1        
34 op=$1
35 shift
37 $op $*