~ubuntu-branches/ubuntu/trusty/glx-alternatives/trusty

« back to all changes in this revision

Viewing changes to zz_nvidia-blacklists-nouveau

  • Committer: Package Import Robot
  • Author(s): Andreas Beckmann
  • Date: 2013-05-05 15:25:15 UTC
  • mfrom: (2.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130505152515-ouel4r5hvhbmebkq
Tags: 0.3.0
* glx-diversions: Divert libGL.so.1.2.0 from MESA 9.x.  (Closes: #704914)
* Drop maintainer script parts intended for updates from versions predating
  wheezy.
* Use canonical Vcs-* URLs.
* Bump Standards-Version to 3.9.4. No changes needed. 
* Switch to debhelper 9.
* Update my email address and remove DMUA. 
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
set -e
 
3
 
 
4
if [ "$1" = "prereqs" ]; then exit 0; fi
 
5
 
 
6
. /usr/share/initramfs-tools/hook-functions
 
7
 
 
8
BLACKLIST=/etc/modprobe.d/nvidia-blacklists-nouveau.conf
 
9
 
 
10
# there may be a dangling symlink
 
11
if [ -n "$DESTDIR" ] && [ -L "$DESTDIR$BLACKLIST" ]; then
 
12
        rm -f "$DESTDIR$BLACKLIST"
 
13
fi
 
14
 
 
15
if [ -f "$BLACKLIST" ]; then
 
16
        # this will dereference the symlink
 
17
        copy_exec "$BLACKLIST"
 
18
fi