bendikro / deluge-vpn

78 stars 13 forks source link

getnetmask issue #9

Open kehator opened 5 years ago

kehator commented 5 years ago

I was trying to use this on the latest Raspbian (Kernel version:4.14). I have a problem with 'getnetmask' function. [ $a -le $PREFIX ] this is calling 'unary operator expected', so I've found out about this -le and I was trying to make it right, but no mather what I do, it's always coming with some other error.. like integer expected.. command not found.. or even file not found..

Is this because I'm trying to use it on Raspberry Pi, or maybe this is fixable?

bendikro commented 5 years ago

Hi

Can you print the values of IP and PREFIX? Add statements in the beiginning of getnetmask:

echo "IP: $IP"
echo "PREFIX: $PREFIX"