Browse files

asus-switcheroo: install target

Add install target for Fedora

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  • Loading branch information...
1 parent 2d5f4a2 commit 6d7203d3283d47fe5bfa82ef3a941339eb6af329 @awilliam committed Apr 17, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 Makefile
View
9 Makefile
@@ -8,3 +8,12 @@ default:
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
+
+install:
+ install -m 0644 -D asus-switcheroo.ko /lib/modules/$(shell uname -r)/extra/asus-switcheroo/asus-switcheroo.ko
+ 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
+ install -m 0644 asus-switcheroo.conf-dracut /etc/dracut.conf.d/asus-switcheroo.conf
+ depmod -a
+ cp /boot/initramfs-$(shell uname -r).img /boot/initramfs-$(shell uname -r).img.bak
+ dracut -f /boot/initramfs-$(shell uname -r).img $(shell uname -r)

0 comments on commit 6d7203d

Please sign in to comment.