Permalink
Browse files

asus-switcheroo: Arch Linux install/uninstall

From: Jorge Sousa <jorge.msl.sousa@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  • Loading branch information...
1 parent 31b4f7e commit 1fd8475e90dbc4815be74fe424aac352ab89daa2 @awilliam committed Apr 19, 2011
Showing with 17 additions and 0 deletions.
  1. +17 −0 Makefile
View
@@ -43,3 +43,20 @@ uninstall-ubuntu:
rm -f /etc/modprobe.d/asus-switcheroo.conf
sed -i -e "/asus-switcheroo/D" /etc/initramfs-tools/modules
update-initramfs -u -k $(shell uname -r)
+
+install-arch:
+ install -m 0644 -D asus-switcheroo.ko /lib/modules/$(uname -r)/extra/asus-switcheroo/asus-switcheroo.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/MODULES=(/MODULES=(asus-switcheroo /" /etc/rc.conf
+ cp /boot/kernel26.img /boot/kernel26.img.bak
+ mkinitcpio -p kernel26
+
+uninstall-arch:
+ rm -fr /lib/modules/$(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/MODULES=(asus-switcheroo /MODULES=(/" /etc/rc.conf
+ mkinitcpio -p kernel26

0 comments on commit 1fd8475

Please sign in to comment.