mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
58a841efc2
commit
956cfb324c
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue