From cc45abb77b195ecd778e578cc716b90e9612e48a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Nov 2011 13:17:20 -0500 Subject: net.lo: fix typo in previous math commit x-Gentoo-Bug: 391671 x-Gentoo-Bug-URL: http://bugs.gentoo.org/391671 Reported-by: Duncan <1i5t5.duncan@cox.net> Signed-off-by: Mike Frysinger --- init.d/net.lo.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/net.lo.in b/init.d/net.lo.in index d647f319..21816576 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -144,7 +144,7 @@ _netmask2cidr() local i= len= local IFS=. for i in $1; do - while [ i -ne 0 ]; do + while [ ${i} -ne 0 ]; do : $(( len += i % 2 )) : $(( i >>= 1 )) done -- cgit v1.2.3