aboutsummaryrefslogtreecommitdiff
path: root/init.d/net.lo.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/net.lo.in')
-rw-r--r--init.d/net.lo.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index 95744f8b..cc3bfd03 100644
--- a/init.d/net.lo.in
+++ b/init.d/net.lo.in
@@ -151,6 +151,9 @@ _netmask2cidr()
local i= len=
local IFS=.
for i in $1; do
+ case $i in
+ 0x*) i=$((i)) ;;
+ esac
while [ ${i} -ne 0 ]; do
: $(( len += i % 2 ))
: $(( i >>= 1 ))