#/bin/sh ### # # FreeWLAN Addons - http://www.freewlan.info # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA # # http://www.gnu.org/copyleft/gpl.html # ### . /etc/functions.sh config_load fonfan config_get crypt heartbeat crypt config_get enable heartbeat enable config_get mail heartbeat mail config_load fon config_get ssid public essid if enabled $enable then if [ -f /tmp/eth0_mac ] then mac=$(cat /tmp/eth0_mac) else mac=$( ifconfig eth0|grep HWaddr|sed -e "s/^.*HWaddr //" |sed -e "s/ //g" ) fi if wget -q -O /dev/null "http://www.fonfan.de/engine/status.php?crypt=$crypt&mac=$mac&wmail=$mail&ssid=$ssid" 2>/dev/null then exit 0 else exit 1 fi else exit 0 fi