http://bugs.gentoo.org/130243 Fix syntax errors when running `ifcfg dev` Index: ip/ifcfg =================================================================== RCS file: /repos/iproute2/ip/ifcfg,v retrieving revision 1.2 diff -u -p -r1.2 ifcfg --- ip/ifcfg 15 Apr 2004 20:56:59 -0000 1.2 +++ ip/ifcfg 19 Apr 2006 00:30:28 -0000 @@ -86,6 +86,10 @@ if [ "$peer" != "" ]; then fi pfx="$ipaddr peer $peer" else + if [ "$ipaddr" = "" ]; then + echo "Missing IP address argument." 1>&2 + exit 1 + fi if [ "$pfxlen" = "" ]; then ABCMaskLen $ipaddr pfxlen=$?