From 8468b4c1302ebdb212bb0bf6d89bc4a8308bd0b7 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt Date: Wed, 30 Oct 2013 00:11:36 +0100 Subject: [PATCH] =?UTF-8?q?Einr=C3=BCckungen=20Korigiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Tarek Butt --- .../root_file_system/etc/clients_event.sh | 10 +++---- .../root_file_system/etc/environment.sh | 30 +++++++++---------- .../etc/hotplug.d/iface/50-fastdstart | 4 +-- .../etc/hotplug.d/iface/51-configurator | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/bsp/default/root_file_system/etc/clients_event.sh b/bsp/default/root_file_system/etc/clients_event.sh index 07b4504..ff29ef9 100755 --- a/bsp/default/root_file_system/etc/clients_event.sh +++ b/bsp/default/root_file_system/etc/clients_event.sh @@ -8,11 +8,11 @@ do if [ "`echo $LINE | grep 'wlan0: new station'`" != "" ]; then i=`expr $i + 1` wget -q -O - http://status.kreativitaet-trifft-technik.de/update/ff\?client_associated=`date +%s`\&clients_count=$i - fi - if [ "`echo $LINE | grep 'wlan0: unknown event 20'`" != "" ]; then - i=`expr $i - 1` - wget -q -O - http://status.kreativitaet-trifft-technik.de/update/ff\?client_disassociated=`date +%s`\&clients_count=$i - fi + fi + if [ "`echo $LINE | grep 'wlan0: unknown event 20'`" != "" ]; then + i=`expr $i - 1` + wget -q -O - http://status.kreativitaet-trifft-technik.de/update/ff\?client_disassociated=`date +%s`\&clients_count=$i + fi done diff --git a/bsp/default/root_file_system/etc/environment.sh b/bsp/default/root_file_system/etc/environment.sh index 972d1bb..5566dcd 100755 --- a/bsp/default/root_file_system/etc/environment.sh +++ b/bsp/default/root_file_system/etc/environment.sh @@ -27,27 +27,27 @@ get_batman_interface() { } get_vpn_interface() { - test -f /etc/fastdstart.sh || exit; - local $(grep -o project=.* /etc/fastdstart.sh) - echo ${project}VPN | tr -d '"' + test -f /etc/fastdstart.sh || exit; + local $(grep -o project=.* /etc/fastdstart.sh) + echo ${project}VPN | tr -d '"' } get_debug_level() { - echo "0" + echo "0" } print_definitions() { - echo "# interfaces" - echo "WLAN_CLIENT_INTERFACE=$(get_wlan_client_interface)" - echo "WLAN_MESH_INTERFACE=$(get_wlan_mesh_interface)" - echo "ETH_CLIENT_INTERFACE=$(get_eth_client_interface)" - echo "ETH_MESH_INTERFACE=$(get_eth_mesh_interface)" - echo "BRIDGE_INTERFACE=$(get_bridge_interface)" - echo "BATMAN_INTERFACE=$(get_batman_interface)" - echo "VPN_INTERFACE=$(get_vpn_interface)" - echo "" - echo "# variables" - echo "DEBUG=$(get_debug_level)" + echo "# interfaces" + echo "WLAN_CLIENT_INTERFACE=$(get_wlan_client_interface)" + echo "WLAN_MESH_INTERFACE=$(get_wlan_mesh_interface)" + echo "ETH_CLIENT_INTERFACE=$(get_eth_client_interface)" + echo "ETH_MESH_INTERFACE=$(get_eth_mesh_interface)" + echo "BRIDGE_INTERFACE=$(get_bridge_interface)" + echo "BATMAN_INTERFACE=$(get_batman_interface)" + echo "VPN_INTERFACE=$(get_vpn_interface)" + echo "" + echo "# variables" + echo "DEBUG=$(get_debug_level)" } # program diff --git a/bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart b/bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart index 0c770b1..8b435ea 100755 --- a/bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart +++ b/bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart @@ -1,5 +1,5 @@ #!/bin/sh [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && { - sleep 3 - sh /etc/fastdstart.sh + sleep 3 + sh /etc/fastdstart.sh } diff --git a/bsp/default/root_file_system/etc/hotplug.d/iface/51-configurator b/bsp/default/root_file_system/etc/hotplug.d/iface/51-configurator index c13c3bf..b3368d6 100755 --- a/bsp/default/root_file_system/etc/hotplug.d/iface/51-configurator +++ b/bsp/default/root_file_system/etc/hotplug.d/iface/51-configurator @@ -1,4 +1,4 @@ #!/bin/sh [ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && { - sh /etc/configurator.sh + sh /etc/configurator.sh }