diff options
| author | Bastian Bittorf <bb@npl.de> | 2017-02-12 20:41:04 +0100 |
|---|---|---|
| committer | Bastian Bittorf <bb@npl.de> | 2017-02-12 20:41:04 +0100 |
| commit | 824f1a68e3eba8e0c8f90026e7ae652465cc1de2 (patch) | |
| tree | f289af9d884bde3dc31b307780c5525378be33ab /olsrd | |
| parent | 67939e59a2b7d59fc16e1df6d7916006708e67b3 (diff) | |
olsr: hotplug: fix a wrong grep (never successful) in olsrd_interface_already_in_config()
Diffstat (limited to 'olsrd')
| -rwxr-xr-x | olsrd/files/olsrd.hotplug.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/olsrd/files/olsrd.hotplug.sh b/olsrd/files/olsrd.hotplug.sh index 99e834e..ee41a2e 100755 --- 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 |
