Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edited Makefile via GitHub #6

Merged
merged 2 commits into from
Sep 19, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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