Polishes bmx6 graph. Adds colors by network and gives color to links based on link...
[feed/routing.git] / olsrd / files / olsrd.hotplug.sh
index 9e5f0ca72cff5126dbeff80c1cb99ab92c0daaf3..ee41a2eb57ebe96a6ea2d1d060439d134b421b00 100755 (executable)
@@ -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
@@ -52,7 +52,7 @@ case "$ACTION" in
        ifup)
                # only work after the first normal startup
                # also: no need to test, if enabled
-               OLSRD=olsrd4
+               OLSRD=olsrd
                [ -e "/var/etc/$OLSRD.conf" ] && {
                        # INTERFACE = e.g. 'wlanadhocRADIO1' or 'cfg144d8f'
                        # DEVICE    = e.g. 'wlan1-1'