From: Bastian Bittorf Date: Sat, 4 Jan 2014 06:54:22 +0000 (+0100) Subject: olsrd: hotplug: changed a varname which broke in 3a1fd118833e8c6d341fde4ef99d31786c3614c9 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=003a28d88dc0adda5f8b83bdc32cd4fc211de4ec;p=feed%2Frouting.git olsrd: hotplug: changed a varname which broke in 3a1fd118833e8c6d341fde4ef99d31786c3614c9 --- diff --git a/olsrd/files/olsrd.hotplug.sh b/olsrd/files/olsrd.hotplug.sh index 76e801a..2094463 100755 --- a/olsrd/files/olsrd.hotplug.sh +++ b/olsrd/files/olsrd.hotplug.sh @@ -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