Fix iproute2 support.

Fixes Gentoo #289762.
This commit is contained in:
William Hubbs 2009-11-10 21:19:17 +00:00 committed by Roy Marples
parent ebb49805fc
commit bb96dc4e01

View File

@ -112,8 +112,8 @@ runip()
err=$(LC_ALL=C ip address add "$@" dev "$int" 2>&1)
if [ -z "$err" ]; then
# ip does not bring up the interface when adding addresses
if ! intup; then
ip set link up dev "$int"
if ! $intup; then
ip link set "$int" up
intup=true
fi
return 0