diff --git a/bsp/default/root_file_system/etc/clients_event.sh b/bsp/default/root_file_system/etc/clients_event.sh index 07b45044..ff29ef9c 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 972d1bb7..5566dcd0 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 0c770b19..8b435eaf 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 c13c3bf2..b3368d67 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 }