+carnet-tools-cn (3.2.0) stable; urgency=low
+
+ * Minimalne izmjene u paketu za Debian stretch
+ * Izmjene u funkcijama cp_get_ifaddr i cp_get_ifmask zbog drugacijeg
+ outputa naredbe ifconfig
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr> Fri, 27 Apr 2018 09:28:03 +0200
+
carnet-tools-cn (3.1.0) stable; urgency=low
* Minimalne izmjene u paketu za Debian jessie
Priority: optional
Maintainer: Ivan Rako <Ivan.Rako@CARNet.hr>
Build-Depends: debhelper (>= 9.20120909)
-Standards-Version: 3.9.4
+Standards-Version: 3.9.8
Package: carnet-tools-cn
Architecture: all
-Depends: perl-base (>= 5.14.2-21), coreutils (>= 8.13-3.5), debianutils (>= 4.3.2), ipcalc, net-tools, ${misc:Depends}, ${perl:Depends}
+Depends: perl-base (>= 5.14.2-21), coreutils (>= 8.13-3.5), debianutils (>= 4.3.2), ipcalc, net-tools (>= 1.60+git20161116.90da8a0-1), ${misc:Depends}, ${perl:Depends}
Suggests: mail-transport-agent
Conflicts: carnet-tools
Provides: carnet-tools
return 2
fi
- ifaddr="`/sbin/ifconfig $interface | awk '/inet/{ printf("%s\n",substr($2,index($2,":")+1)) }'`"
+ #ifaddr="`/sbin/ifconfig $interface | awk '/inet /{ printf("%s\n",substr($2,index($2,":")+1)) }'`"
+ ifaddr="`/sbin/ifconfig $interface | awk '/inet /{ printf($2) }'`"
if [ -z $ifaddr ]; then
echo "cp_get_ifaddr: $interface: No ip address found" 1>&2
return 1
fi
- ifmask="`/sbin/ifconfig $interface | awk '/Mask/{if($3~/Mask/)a=$3;else if ($4~/Mask/)a=$4;printf ("%s\n", substr(a,index(a,":")+1))}'`"
+ #ifmask="`/sbin/ifconfig $interface | awk '/Mask/{if($3~/Mask/)a=$3;else if ($4~/Mask/)a=$4;printf ("%s\n", substr(a,index(a,":")+1))}'`"
+ ifmask="`/sbin/ifconfig $interface | awk '/netmask /{ printf($4) }'`"
if [ -z "$ifmask" ]; then
echo "cp_get_ifmask: $interface: No netmask found" 1>&2