aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-09-03 10:13:30 -0400
committerBill Nottingham <notting@redhat.com>2008-10-14 16:30:07 -0400
commite113533d88d31bddc867e601db5deacda0c4f8ef (patch)
treeba08a46817fee6192d020cc74dd337cfa81b1932 /rc.d/rc.sysinit
parent04c7e48408dd2fae257afa9ed64755718289e3c6 (diff)
downloadinitscripts-e113533d88d31bddc867e601db5deacda0c4f8ef.tar
initscripts-e113533d88d31bddc867e601db5deacda0c4f8ef.tar.gz
initscripts-e113533d88d31bddc867e601db5deacda0c4f8ef.tar.bz2
initscripts-e113533d88d31bddc867e601db5deacda0c4f8ef.tar.xz
initscripts-e113533d88d31bddc867e601db5deacda0c4f8ef.zip
Use 0.0.0.0/0, not 0/0. (#460580)
Updated iproute doesn't like the old syntax.
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 3398eb2c..e4faea76 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -489,7 +489,7 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
# must be done even if we have local storage.
ipaddr=
if [ "$HOSTNAME" = "localhost" -o "$HOSTNAME" = "localhost.localdomain" ]; then
- ipaddr=$(ip addr show to 0/0 scope global | awk '/[[:space:]]inet / { print gensub("/.*","","g",$2) }')
+ ipaddr=$(ip addr show to 0.0.0.0/0 scope global | awk '/[[:space:]]inet / { print gensub("/.*","","g",$2) }')
if [ -n "$ipaddr" ]; then
eval $(ipcalc -h $ipaddr 2>/dev/null)
hostname ${HOSTNAME}