aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/lib.sh
diff options
context:
space:
mode:
authorYoann Vandoorselaere <yoann@mandriva.com>1999-12-01 11:02:33 +0000
committerYoann Vandoorselaere <yoann@mandriva.com>1999-12-01 11:02:33 +0000
commit49875dda625b1cf67d1ec25153e3eecfb5aed421 (patch)
tree397bf6de37589f8517467bbbf1b58555d0057bb8 /init-sh/lib.sh
parent6993d7456f2e542095deec62549d467e6e9a7057 (diff)
downloadmsec-49875dda625b1cf67d1ec25153e3eecfb5aed421.tar
msec-49875dda625b1cf67d1ec25153e3eecfb5aed421.tar.gz
msec-49875dda625b1cf67d1ec25153e3eecfb5aed421.tar.bz2
msec-49875dda625b1cf67d1ec25153e3eecfb5aed421.tar.xz
msec-49875dda625b1cf67d1ec25153e3eecfb5aed421.zip
Bug fix
Diffstat (limited to 'init-sh/lib.sh')
-rw-r--r--init-sh/lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index 81c62c0..262b1db 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -47,7 +47,7 @@ AddRules () {
echo "Modifying config in ${file}..."
fi
- if ! grep -qx "${string}" ${file}; then
+ if ! grep -Eqx "^${string}" ${file}; then
echo "${COMMENT}" >> ${file};
echo "${string}" >> ${file};
fi
@@ -60,7 +60,7 @@ CleanRules() {
file=$1
ctrl=0
- echo -en "\t- Cleaning msec appended line in ${file} : "
+ echo -en "\t- Cleaning msec appended line in ${file} : "
mv -f ${file} /tmp/secure.tmp
touch ${file}