updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / dkms-acpi_call-git / acpi_call.install
blobe9d69815543b41264c84b2fe3631e385ef54f9ab
1 PKGVER="$(ls /usr/src/ | grep acpi_call | sed 's/^.*-//')"
3 post_install() {
4   dkms add -m "acpi_call/${PKGVER}"
5   dkms build -m "acpi_call/${PKGVER}"
6   dkms install -m "acpi_call/${PKGVER}"
7   depmod -a
8   echo ""
9   echo "[+] modprobe acpi_call"
10   echo ">>> run /usr/bin/test_off.sh to test/view different acpi_call functions to see if it disables your secondary/hybrid video card"
11   echo ">>> FYI: there are 2 scripts in /usr/share/acpi_call/ for specific laptops => asus1215n.sh and m11xr2.sh "
14 post_upgrade() {
15   post_install
18 pre_remove() {
19   dkms remove -m "acpi_call/${PKGVER}" --all
22 pre_upgrade() {
23   pre_remove
26 post_remove() {
27   depmod -a