File: bumblebee-nvidia.postinst.Debian

package info (click to toggle)
bumblebee 3.2.1-29
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,304 kB
  • sloc: ansic: 2,845; sh: 1,796; makefile: 190
file content (16 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e

case "$1" in
  configure)
    if dpkg --compare-versions "$2" lt-nl "3.2.1-21~" ; then
        update-alternatives --force --auto glx 2>/dev/null || true
        dpkg-trigger register-glx-alternative-nvidia
    fi

    # this has a chance of crashing the machine with mainline kernels...
    grep -q '^nouveau ' /proc/modules && rmmod nouveau || true
    ;;
esac

#DEBHELPER#