lots of fixes, fix permissions
[kernel-power] / kernel-power-settings / debian / kernel-power-settings.postrm
index e3792be..3f12692 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
-if grep "# KERNEL-POWER-HOOK" /etc/default/mount-opts; then
-       grep -v "# KERNEL-POWER-HOOK" /etc/default/mount-opts > /etc/default/mount-opts.tmp
+if grep -q "# KERNEL-POWER-HOOK" /etc/default/mount-opts; then
+    grep -v "# KERNEL-POWER-HOOK" /etc/default/mount-opts > /etc/default/mount-opts.tmp
     mv /etc/default/mount-opts.tmp /etc/default/mount-opts
 fi