diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2007-03-06 09:44:28 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2007-03-06 09:44:28 +0000 |
commit | ef3a09745cf10f641f76879859323f3f8632d019 (patch) | |
tree | 4ce7e98d5f9d83a9b4f8fb4ea09d7ebe86403fed | |
parent | 4cd7481873f56cd9a81733e92d3bd1b8d6f7af62 (diff) | |
download | rpm-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-x | get-free-syslog-facility | 2 |
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 |