projects
/
feed
/
routing.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67939e5
)
olsr: hotplug: fix a wrong grep (never successful) in olsrd_interface_already_in_config()
author
Bastian Bittorf
<bb@npl.de>
Sun, 12 Feb 2017 19:41:04 +0000
(20:41 +0100)
committer
Bastian Bittorf
<bb@npl.de>
Sun, 12 Feb 2017 19:41:04 +0000
(20:41 +0100)
olsrd/files/olsrd.hotplug.sh
patch
|
blob
|
history
diff --git
a/olsrd/files/olsrd.hotplug.sh
b/olsrd/files/olsrd.hotplug.sh
index 99e834ea4c622b16e6baaafbbe0152d6b6fc8abc..ee41a2eb57ebe96a6ea2d1d060439d134b421b00 100755
(executable)
--- a/
olsrd/files/olsrd.hotplug.sh
+++ b/
olsrd/files/olsrd.hotplug.sh
@@
-15,14
+15,14
@@
olsrd_list_configured_interfaces()
;;
esac
- i=$((
$
i + 1 ))
+ i=$(( i + 1 ))
} done
}
olsrd_interface_already_in_config()
{
# e.g.: 'Interface "eth0.1" "eth0.2" "wlan0"'
- if grep -s ^'Interface '
'/var/etc/$OLSRD.conf'
| grep -q "\"$DEVICE\""; then
+ if grep -s ^'Interface '
"/var/etc/$OLSRD.conf"
| grep -q "\"$DEVICE\""; then
logger -t olsrd_hotplug -p daemon.debug "[OK] already_active: '$INTERFACE' => '$DEVICE'"
return 0
else