diff options
author | Bill Nottingham <notting@redhat.com> | 2007-09-25 14:56:26 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2007-09-25 14:56:26 +0000 |
commit | 75698769f6b5b123d16286571f6c9c792c0351af (patch) | |
tree | 5ea2252bc5f1cb171620cfa1b4693917d7b9d414 /rc.d/init.d/netconsole | |
parent | c479557fc5aff54be7a44780cedede44598611d6 (diff) | |
download | initscripts-75698769f6b5b123d16286571f6c9c792c0351af.tar initscripts-75698769f6b5b123d16286571f6c9c792c0351af.tar.gz initscripts-75698769f6b5b123d16286571f6c9c792c0351af.tar.bz2 initscripts-75698769f6b5b123d16286571f6c9c792c0351af.tar.xz initscripts-75698769f6b5b123d16286571f6c9c792c0351af.zip |
work around bash changes (#220887, modified from <nvigier@mandriva.com>)
Diffstat (limited to 'rc.d/init.d/netconsole')
-rw-r--r-- | rc.d/init.d/netconsole | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.d/init.d/netconsole b/rc.d/init.d/netconsole index b25fed81..1a6edc82 100644 --- a/rc.d/init.d/netconsole +++ b/rc.d/init.d/netconsole @@ -67,7 +67,8 @@ start () SYSLOGOPTS= # syslogd server, if any if [ -n "$SYSLOGADDR" ]; then - if ! [[ "$SYSLOGADDR" =~ "^([0-9]{1,3}\.){3}[0-9]{1,3}$" ]]; then + MATCH="^([0-9]{1,3}\.){3}[0-9]{1,3}$" + if ! [[ "$SYSLOGADDR" =~ $MATCH ]]; then SYSLOGADDR=$(LANG=C host $SYSLOGADDR 2>/dev/null | awk '/has address / { print $NF }') fi fi |