Fix an ifconfig calculation for shells that don't support the newer POSIX shell math expansion, #197856.
This commit is contained in:
parent
54a8d55926
commit
220f6f8fdb
@ -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 <uberlord@gentoo.org>:
|
||||
|
||||
Fix an ifconfig calculation for shells that don't support the newer
|
||||
POSIX shell math expansion, #197856.
|
||||
|
||||
01 Nov 2007; Roy Marples <uberlord@gentoo.org>:
|
||||
|
||||
Work cleanly with bridges on kernels without TCP, #197791.
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user