From 220f6f8fdba09d8e19b61a060d29d3d3bd6e13aa Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 2 Nov 2007 10:07:10 +0000 Subject: [PATCH] Fix an ifconfig calculation for shells that don't support the newer POSIX shell math expansion, #197856. --- ChangeLog | 5 +++++ net.Linux/ifconfig.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 88988542..af39cbc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for Gentoo System Intialization ("rc") scripts # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2 + 02 Nov 2007; Roy Marples : + + Fix an ifconfig calculation for shells that don't support the newer + POSIX shell math expansion, #197856. + 01 Nov 2007; Roy Marples : Work cleanly with bridges on kernels without TCP, #197791. diff --git a/net.Linux/ifconfig.sh b/net.Linux/ifconfig.sh index 4051ef57..c515d4d0 100644 --- a/net.Linux/ifconfig.sh +++ b/net.Linux/ifconfig.sh @@ -106,7 +106,7 @@ _cidr2netmask() { while [ ${i} -lt ${frac} ] ; do sum=$((${sum} + ${cur})) cur=$((${cur} / 2)) - i=$((i + 1)) + i=$((${i} + 1)) done netmask="${netmask}.${sum}" done=$((${done} + 1))