X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ip%2Fifcfg;fp=ip%2Fifcfg;h=083d9df36742fe0bd7bdb6b395ace5297aa03709;hb=7132284647c15ca30d942926bc506d6019d3b61c;hp=ed6960f7a4b4b55b12cb42d6c3c30a7662167617;hpb=105da95218c9d30375efc43f9edd8ef32998fedb;p=iproute2.git diff --git a/ip/ifcfg b/ip/ifcfg old mode 100755 new mode 100644 index ed6960f..083d9df --- a/ip/ifcfg +++ b/ip/ifcfg @@ -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=$? @@ -125,7 +129,7 @@ noarp=$? ( sleep 2 ; arping -q -U -c 1 -I $dev $ipaddr ) >& /dev/null & /dev/null +ip route add unreachable 224.0.0.0/24 >& /dev/null ip route add unreachable 255.255.255.255 >& /dev/null if [ `ip link ls $dev | grep -c MULTICAST` -ge 1 ]; then ip route add 224.0.0.0/4 dev $dev scope global >& /dev/null