blob: 796161b5a490c1be870fdcceb8441d7f9cda0a11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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=$?
|