Einrückungen Korigiert

Signed-off-by: Jan-Tarek Butt <buttjantarek@googlemail.com>
This commit is contained in:
Jan-Tarek Butt 2013-10-30 00:11:36 +01:00 committed by Clemens John
parent 3bde771788
commit 8468b4c130
4 changed files with 23 additions and 23 deletions

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,5 @@
#!/bin/sh
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
sleep 3
sh /etc/fastdstart.sh
sleep 3
sh /etc/fastdstart.sh
}

View File

@ -1,4 +1,4 @@
#!/bin/sh
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
sh /etc/configurator.sh
sh /etc/configurator.sh
}