Permalink
Browse files

Edited Makefile via GitHub

  • Loading branch information...
1 parent 9231be9 commit 87e07c17eb8f1e422b3f8280cc240716a5d9c5a1 @n0peration committed Sep 8, 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/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/asus-switcheroo.conf
+ sed -i -e "s/asus-switcheroo i915-jprobe nouveau-jprobe//" /etc/sysconfig/kernel
+ mkinitrd

0 comments on commit 87e07c1

Please sign in to comment.