olsrd: hotplug: changed a varname which broke in 3a1fd118833e8c6d341fde4ef99d31786c3614c9
authorBastian Bittorf <bittorf@bluebottle.com>
Sat, 4 Jan 2014 06:54:22 +0000 (07:54 +0100)
committerBastian Bittorf <bittorf@bluebottle.com>
Sat, 4 Jan 2014 06:54:22 +0000 (07:54 +0100)
olsrd/files/olsrd.hotplug.sh

index 76e801a6be4946d6d8534110f73493ed6a1275e3..2094463fc1a8c512eb1e03bbb6006fd9fec87d93 100755 (executable)
@@ -33,13 +33,13 @@ olsrd_interface_already_in_config()
 
 olsrd_interface_needs_adding()
 {
-       local testif
+       local interface
 
        # likely and cheap operation:
        olsrd_interface_already_in_config && return 1
 
-       for myif in $(olsrd_list_configured_interfaces); do {
-               [ "$myif" = "$interface" ] && {
+       for interface in $(olsrd_list_configured_interfaces); do {
+               [ "$interface" = "$INTERFACE" ] && {
                        olsrd_interface_already_in_config || return 0
                }
        } done