aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2007-03-06 09:44:28 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2007-03-06 09:44:28 +0000
commitef3a09745cf10f641f76879859323f3f8632d019 (patch)
tree4ce7e98d5f9d83a9b4f8fb4ea09d7ebe86403fed
parent4cd7481873f56cd9a81733e92d3bd1b8d6f7af62 (diff)
downloadrpm-helper-ef3a09745cf10f641f76879859323f3f8632d019.tar
rpm-helper-ef3a09745cf10f641f76879859323f3f8632d019.tar.gz
rpm-helper-ef3a09745cf10f641f76879859323f3f8632d019.tar.bz2
rpm-helper-ef3a09745cf10f641f76879859323f3f8632d019.tar.xz
rpm-helper-ef3a09745cf10f641f76879859323f3f8632d019.zip
only check for pattern at the beginning of line
-rwxr-xr-xget-free-syslog-facility2
1 files changed, 1 insertions, 1 deletions
diff --git a/get-free-syslog-facility b/get-free-syslog-facility
index 192e0e4..4bbdba1 100755
--- a/get-free-syslog-facility
+++ b/get-free-syslog-facility
@@ -4,7 +4,7 @@
if [ -f /etc/syslog.conf ]; then
for (( i=0; i <= 7; i++ )); do
- if ! grep -q "local$i" /etc/syslog.conf; then
+ if ! grep -q "^local$i" /etc/syslog.conf; then
echo "local$i"
break
fi