aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2011-04-25 14:40:08 -0400
committerBill Nottingham <notting@redhat.com>2011-04-25 14:40:08 -0400
commitc145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2 (patch)
tree8ed3d6f652b6ab11251e6747a734b08bd0135dd5 /rc.d/rc.sysinit
parent3c38f904f831f02d5f5c28f431ca86d9877697f1 (diff)
downloadinitscripts-c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2.tar
initscripts-c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2.tar.gz
initscripts-c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2.tar.bz2
initscripts-c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2.tar.xz
initscripts-c145e815bcfad7f35fb1b53cdea2d0f66c1fd4e2.zip
Fix logic error (#698520, <jlau@redhat.com>)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit2
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