summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/defaultroute
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2008-12-17 17:35:14 +0000
committerbrooks <brooks@FreeBSD.org>2008-12-17 17:35:14 +0000
commit906e066d74f4617c6ec33d1c3f62b6b1a31ffcf3 (patch)
treebbd8f59789b68815d70943cd699163e9853b0009 /etc/rc.d/defaultroute
parent77a62a364bc8da536aa0eacdae250837eed26c38 (diff)
downloadFreeBSD-src-906e066d74f4617c6ec33d1c3f62b6b1a31ffcf3.zip
FreeBSD-src-906e066d74f4617c6ec33d1c3f62b6b1a31ffcf3.tar.gz
Correct a bug where /etc/rc.d/defaultroute fails to finish by printing a
newline when it fails to obtain an address via DHCP. This made the next rc script begin its output on the same line. PR: conf Submitted by: Bruce Cran <bruce at cran dot org dot uk> MFC after: 3 days
Diffstat (limited to 'etc/rc.d/defaultroute')
-rwxr-xr-xetc/rc.d/defaultroute4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/defaultroute b/etc/rc.d/defaultroute
index 876d682..536cb42 100755
--- a/etc/rc.d/defaultroute
+++ b/etc/rc.d/defaultroute
@@ -30,7 +30,7 @@ defaultroute_start()
defif=`get_default_if -inet`
if [ -n "${defif}" ]; then
if [ ${delay} -ne ${if_up_delay} ]; then
- echo "($defif)"
+ echo -n "($defif)"
fi
break
fi
@@ -42,6 +42,8 @@ defaultroute_start()
sleep 1
delay=`expr $delay - 1`
done
+
+ echo
}
load_rc_config $name
OpenPOWER on IntegriCloud