"Fix" bashisms (at least they are bashims according to the Debian people)

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8289 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
el_cubano
2008-03-14 02:07:28 +00:00
parent b0a5c577f4
commit bbe6dfb5fd
32 changed files with 1816 additions and 368 deletions

View File

@ -995,7 +995,12 @@ usage() {
# Find the interface with the passed MAC address
#################################################################################
find_interface_by_mac() {
local mac=$1 first second rest dev
local mac
mac=$1
local first
local second
local rest
local dev
/sbin/ip link ls | while read first second rest; do
case $first in
@ -1014,7 +1019,9 @@ find_interface_by_mac() {
# Convert MAC addresses to interface names
################################################################################
get_interfaces() {
local interfaces= interface
local interfaces
interfaces=
local interface
for interface in $INTERFACES; do
case $interface in
@ -1097,4 +1104,4 @@ esac
</blockquote>
</section>
</section>
</article>
</article>

View File

@ -915,7 +915,12 @@ usage() {
# Find the interface with the passed MAC address
#################################################################################
find_interface_by_mac() {
local mac=$1 first second rest dev
local mac
mac=$1
local first
local second
local rest
local dev
/sbin/ip link ls | while read first second rest; do
case $first in
@ -934,7 +939,9 @@ find_interface_by_mac() {
# Convert MAC addresses to interface names
################################################################################
get_interfaces() {
local interfaces= interface
local interfaces
interfaces=
local interface
for interface in $INTERFACES; do
case $interface in
@ -1017,4 +1024,4 @@ esac
</blockquote>
</section>
</section>
</article>
</article>