diff options
author | Bill Nottingham <notting@redhat.com> | 2011-04-25 14:40:08 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2011-04-25 14:40:08 -0400 |
commit | c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2 (patch) | |
tree | 8ed3d6f652b6ab11251e6747a734b08bd0135dd5 | |
parent | 3c38f904f831f02d5f5c28f431ca86d9877697f1 (diff) | |
download | initscripts-c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2.tar initscripts-c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2.tar.gz initscripts-c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2.tar.bz2 initscripts-c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2.tar.xz initscripts-c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2.zip |
Fix logic error (#698520, <jlau@redhat.com>)
-rwxr-xr-x | rc.d/rc.sysinit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 561e99e8..09f93b32 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -330,7 +330,7 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then ipaddr=$(ip addr show to 0.0.0.0/0 scope global | awk '/[[:space:]]inet / { print gensub("/.*","","g",$2) }') for ip in $ipaddr ; do HOSTNAME= - eval $(ipcalc -h $ipaddr 2>/dev/null) + eval $(ipcalc -h $ip 2>/dev/null) [ -n "$HOSTNAME" ] && { hostname ${HOSTNAME} ; break; } done fi |