Permalink
Browse files

Merge pull request #6 from n0peration/patch-1

Edited Makefile via GitHub
  • Loading branch information...
2 parents 9231be9 + 257a96c commit 3d24322bafa56b36d8637c2b4a40d90ff527d8cb @awilliam committed Sep 19, 2011
Showing with 22 additions and 0 deletions.
  1. +22 −0 Makefile
View
22 Makefile
@@ -76,3 +76,25 @@ uninstall-arch:
rm -f /etc/modprobe.d/asus-switcheroo.conf
sed -i -e "s/asus-switcheroo i915-jprobe nouveau-jprobe //" /etc/rc.conf
mkinitcpio -p kernel26
+
+install-opensuse:
+ install -m 0644 -D asus-switcheroo.ko /lib/modules/$(shell uname -r)/extra/asus-switcheroo/asus-switcheroo.ko
+ install -m 0644 -D byo-switcheroo.ko /lib/modules/$(shell uname -r)/extra/asus-switcheroo/byo-switcheroo.ko
+ install -m 0644 -D i915-jprobe.ko /lib/modules/$(shell uname -r)/extra/asus-switcheroo/i915-jprobe.ko
+ install -m 0644 -D nouveau-jprobe.ko /lib/modules/$(shell uname -r)/extra/asus-switcheroo/nouveau-jprobe.ko
+ depmod -a
+ install -m 0755 asus-switcheroo-pm /etc/pm/sleep.d/75-asus-switcheroo-pm
+ install -m 0644 asus-switcheroo.conf-modprobe.d /etc/modprobe.d/50-asus-switcheroo.conf
+ sed -i -e "s/asus-switcheroo i915-jprobe nouveau-jprobe //" /etc/sysconfig/kernel
+ sed -i -e "s/INITRD_MODULES=\"/INITRD_MODULES=\"asus-switcheroo i915-jprobe nouveau-jprobe /" /etc/sysconfig/kernel
+ cp /boot/initrd-$(shell uname -r) /boot/initrd-$(shell uname -r).bak
+ mkinitrd
+
+
+uninstall-opensuse:
+ rm -fr /lib/modules/$(shell uname -r)/extra/asus-switcheroo
+ depmod -a
+ rm -f /etc/pm/sleep.d/75-asus-switcheroo-pm
+ rm -f /etc/modprobe.d/50-asus-switcheroo.conf
+ sed -i -e "s/asus-switcheroo i915-jprobe nouveau-jprobe//" /etc/sysconfig/kernel
+ mkinitrd

0 comments on commit 3d24322

Please sign in to comment.