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:56 -0400 |
commit | 879d7473ecd6975b060a63c34f0ec3cdec782070 (patch) | |
tree | 1c4f624adec76994fb3826f96aa0334382a48a7f | |
parent | c97a314920437b0d99d2c604df0c43b4b4ee8bac (diff) | |
download | initscripts-879d7473ecd6975b060a63c34f0ec3cdec782070.tar initscripts-879d7473ecd6975b060a63c34f0ec3cdec782070.tar.gz initscripts-879d7473ecd6975b060a63c34f0ec3cdec782070.tar.bz2 initscripts-879d7473ecd6975b060a63c34f0ec3cdec782070.tar.xz initscripts-879d7473ecd6975b060a63c34f0ec3cdec782070.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 cfa457e6..bebfeb20 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -327,7 +327,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 |