#!/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