Einrückungen Korigiert
Signed-off-by: Jan-Tarek Butt <buttjantarek@googlemail.com>
This commit is contained in:
parent
3bde771788
commit
8468b4c130
4 changed files with 23 additions and 23 deletions
|
@ -8,11 +8,11 @@ do
|
||||||
if [ "`echo $LINE | grep 'wlan0: new station'`" != "" ]; then
|
if [ "`echo $LINE | grep 'wlan0: new station'`" != "" ]; then
|
||||||
i=`expr $i + 1`
|
i=`expr $i + 1`
|
||||||
wget -q -O - http://status.kreativitaet-trifft-technik.de/update/ff\?client_associated=`date +%s`\&clients_count=$i
|
wget -q -O - http://status.kreativitaet-trifft-technik.de/update/ff\?client_associated=`date +%s`\&clients_count=$i
|
||||||
fi
|
fi
|
||||||
if [ "`echo $LINE | grep 'wlan0: unknown event 20'`" != "" ]; then
|
if [ "`echo $LINE | grep 'wlan0: unknown event 20'`" != "" ]; then
|
||||||
i=`expr $i - 1`
|
i=`expr $i - 1`
|
||||||
wget -q -O - http://status.kreativitaet-trifft-technik.de/update/ff\?client_disassociated=`date +%s`\&clients_count=$i
|
wget -q -O - http://status.kreativitaet-trifft-technik.de/update/ff\?client_disassociated=`date +%s`\&clients_count=$i
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,27 +27,27 @@ get_batman_interface() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_vpn_interface() {
|
get_vpn_interface() {
|
||||||
test -f /etc/fastdstart.sh || exit;
|
test -f /etc/fastdstart.sh || exit;
|
||||||
local $(grep -o project=.* /etc/fastdstart.sh)
|
local $(grep -o project=.* /etc/fastdstart.sh)
|
||||||
echo ${project}VPN | tr -d '"'
|
echo ${project}VPN | tr -d '"'
|
||||||
}
|
}
|
||||||
|
|
||||||
get_debug_level() {
|
get_debug_level() {
|
||||||
echo "0"
|
echo "0"
|
||||||
}
|
}
|
||||||
|
|
||||||
print_definitions() {
|
print_definitions() {
|
||||||
echo "# interfaces"
|
echo "# interfaces"
|
||||||
echo "WLAN_CLIENT_INTERFACE=$(get_wlan_client_interface)"
|
echo "WLAN_CLIENT_INTERFACE=$(get_wlan_client_interface)"
|
||||||
echo "WLAN_MESH_INTERFACE=$(get_wlan_mesh_interface)"
|
echo "WLAN_MESH_INTERFACE=$(get_wlan_mesh_interface)"
|
||||||
echo "ETH_CLIENT_INTERFACE=$(get_eth_client_interface)"
|
echo "ETH_CLIENT_INTERFACE=$(get_eth_client_interface)"
|
||||||
echo "ETH_MESH_INTERFACE=$(get_eth_mesh_interface)"
|
echo "ETH_MESH_INTERFACE=$(get_eth_mesh_interface)"
|
||||||
echo "BRIDGE_INTERFACE=$(get_bridge_interface)"
|
echo "BRIDGE_INTERFACE=$(get_bridge_interface)"
|
||||||
echo "BATMAN_INTERFACE=$(get_batman_interface)"
|
echo "BATMAN_INTERFACE=$(get_batman_interface)"
|
||||||
echo "VPN_INTERFACE=$(get_vpn_interface)"
|
echo "VPN_INTERFACE=$(get_vpn_interface)"
|
||||||
echo ""
|
echo ""
|
||||||
echo "# variables"
|
echo "# variables"
|
||||||
echo "DEBUG=$(get_debug_level)"
|
echo "DEBUG=$(get_debug_level)"
|
||||||
}
|
}
|
||||||
|
|
||||||
# program
|
# program
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
||||||
sleep 3
|
sleep 3
|
||||||
sh /etc/fastdstart.sh
|
sh /etc/fastdstart.sh
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
|
||||||
sh /etc/configurator.sh
|
sh /etc/configurator.sh
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue