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
This commit is contained in:
Brooks Davis 2008-12-17 17:35:14 +00:00
parent 58a841efc2
commit 956cfb324c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186237

View File

@ -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