Permalink
Browse files

asus-switcheroo: Fix arch install/uninstall

Don't delete the whole line in rc.conf, just extract what we added.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
  • Loading branch information...
1 parent e005845 commit 178d0722c850c8d070064737a67e39246b4207a8 @awilliam committed May 4, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 Makefile
View
@@ -61,8 +61,8 @@ install-arch:
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 "/asus-switcheroo i915-jprobe nouveau-jprobe/D" /etc/rc.conf
- sed -i -e "s/MODULES=(/MODULES=(asus-switcheroo i915-jprobe nouveau-jprobe/" /etc/rc.conf
+ sed -i -e "s/asus-switcheroo i915-jprobe nouveau-jprobe //" /etc/rc.conf
+ sed -i -e "s/MODULES=(/MODULES=(asus-switcheroo i915-jprobe nouveau-jprobe /" /etc/rc.conf
cp /boot/kernel26.img /boot/kernel26.img.bak
mkinitcpio -p kernel26
@@ -71,5 +71,5 @@ uninstall-arch:
depmod -a
rm -f /etc/pm/sleep.d/75-asus-switcheroo-pm
rm -f /etc/modprobe.d/asus-switcheroo.conf
- sed -i -e "/asus-switcheroo i915-jprobe nouveau-jprobe/D" /etc/rc.conf
+ sed -i -e "s/asus-switcheroo i915-jprobe nouveau-jprobe //" /etc/rc.conf
mkinitcpio -p kernel26

0 comments on commit 178d072

Please sign in to comment.