+carnet-tools-cn (3.2.2) stable; urgency=low
+
+ * Ispravljen bug u functions.sh
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr> Fri, 21 Feb 2020 15:37:21 +0100
+
carnet-tools-cn (3.2.1) stable; urgency=low
* Izbacena ovisnost o paketu net-tools, sad se koristi naredba ip
#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) }'`"
cidr="`ip -o -4 addr show $interface scope global | awk '{print $4;}'`"
- ifmask="`ipcalc -nb 161.53.0.188/28 | awk '/^Netmask:/{print $2}'`"
+ ifmask="`ipcalc -nb $cidr | awk '/^Netmask:/{print $2}'`"
if [ -z "$ifmask" ]; then
echo "cp_get_ifmask: $interface: No netmask found" 1>&2