Permalink
Browse files

switcheroo: Add slackware install targets

From: Willy Sudiarto Raharjo <willysr@slackware-id.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  • Loading branch information...
awilliam committed Aug 5, 2012
1 parent fe68d7d commit ab4563b7903f8dc44ddab62a1e5c566fcb546659
Showing with 15 additions and 0 deletions.
  1. +15 −0 Makefile
View
@@ -9,6 +9,21 @@ default:
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
+install-slackware:
+ 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
+
+uninstall-slackware:
+ rm -rf /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
+
install-fedora:
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

2 comments on commit ab4563b

@willysr

This comment has been minimized.

Show comment Hide comment
@willysr

willysr Aug 11, 2012

install -m 0644 -D byo-switcheroo.ko /lib/modules/$(shell uname -r)/extra/asus-switcheroo byo-switcheroo.ko

is missing "/" before the last byo-switcheroo.ko
sorry about that

install -m 0644 -D byo-switcheroo.ko /lib/modules/$(shell uname -r)/extra/asus-switcheroo byo-switcheroo.ko

is missing "/" before the last byo-switcheroo.ko
sorry about that

@awilliam

This comment has been minimized.

Show comment Hide comment
@awilliam

awilliam Aug 11, 2012

Owner

Fixed

Owner

awilliam replied Aug 11, 2012

Fixed

Please sign in to comment.