This fixes running "make autotest" from autobuild, since
it prevents irritating error output in delete_ip_from_iface()
when calling ip addr list ... | grep -Fq "inet ..." .
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(Imported from commit
70f469e05e279e29980df2af10dd89c53001b236)
read local <"$pf"
if [ -z "$_to" -o "${_to%/*}" = "${local%/*}" ] ; then
calc_brd
- cat <<EOF
- inet ${local} brd ${brd} scope global ${dev}
-EOF
+ echo " inet ${local} brd ${brd} scope global ${dev}"
fi
fi
if $secondary && [ -r "$sf" ] ; then
while read local ; do
if [ -z "$_to" -o "${_to%/*}" = "${local%/*}" ] ; then
calc_brd
- cat <<EOF
- inet ${local} brd ${brd} scope global secondary ${dev}
-EOF
+ echo " inet ${local} brd ${brd} scope global secondary ${dev}"
fi
done <"$sf"
fi
if [ -z "$_to" ] ; then
- cat <<EOF
- valid_lft forever preferred_lft forever
-EOF
+ echo " valid_lft forever preferred_lft forever"
fi
}
n=1