mirror of https://github.com/aredn/aredn.git
Merge branch 'hotfix-3.0.1'
This commit is contained in:
commit
b503456def
|
@ -0,0 +1,66 @@
|
|||
#!/bin/bash
|
||||
<<'LICENSE'
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
LICENSE
|
||||
|
||||
#This is a build script for use with the OpenWRT Image Builder to create the final images as used by BBHN
|
||||
|
||||
# Initialize variables
|
||||
FILESDIR="files"
|
||||
AUSTINBUILD=false
|
||||
|
||||
while getopts "v:a:d:f" flag; do
|
||||
case "$flag" in
|
||||
v) REQVERSION=$OPTARG;;
|
||||
a) AUSTINBUILD=true;;
|
||||
d) DESTINATION=$OPTARG;;
|
||||
f) FILESDIR=$OPTARG;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ ! $REQVERSION ]
|
||||
then
|
||||
echo "A version number must be provided with -v flag"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! $DESTINATION ]
|
||||
then
|
||||
echo "A destination folder must be provided with the -d flag"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# If not an Austin build we can set the version and go direct, otherwise we need to do some prepwork on the files.
|
||||
if ! $AUSTINBUILD
|
||||
then
|
||||
VERSION=$REQVERSION
|
||||
else
|
||||
VERSION=$REQVERSION-Austin
|
||||
# Change repository URL's to reflect the Austin server
|
||||
sed -i 's/http:\/\/downloads.bbhndev.org\/firmware\/ubnt/http:\/\/broadband-hamnet.org\/download\/firmware\/ubnt/g' $FILESDIR/www/cgi-bin/admin
|
||||
sed -i 's/http:\/\/downloads.bbhndev.org/http:\/\/www.broadband-hamnet.org\/download/g' $FILESDIR/etc/opkg.conf
|
||||
|
||||
fi
|
||||
|
||||
|
||||
mkdir -p $DESTINATION;
|
||||
|
||||
echo $VERSION > files/etc/mesh-release
|
||||
fakeroot make image PLATFORM="UBNT" PACKAGES="bridge busybox dnsmasq dropbear iptables kmod-ipt-nathelper kmod-usb-core kmod-usb-uhci kmod-usb2 libgcc mtd ppp ppp-mod-pppoe uhttpd olsrd perl olsrd-mod-arprefresh olsrd-mod-dyn-gw olsrd-mod-httpinfo olsrd-mod-nameservice olsrd-mod-txtinfo olsrd-mod-dot-draw olsrd-mod-watchdog olsrd-mod-secure perlbase-essential perlbase-xsloader perlbase-file perlbase-perlio libpcap tcpdump-mini ntpclient xinetd kmod-ipv6 ip6tables kmod-ip6tables libip6tc ip iptables-mod-ipopt iwinfo libiwinfo socat" FILES="$FILESDIR" BIN_DIR="$DESTINATION/$VERSION"
|
||||
rename "s/openwrt/bbhn-$VERSION/g" /$DESTINATION/$VERSION/*
|
|
@ -0,0 +1,2 @@
|
|||
David Rivenburg <ad5oo@arrl.net>
|
||||
Conrad Lara - KG6JEI <KG6JEI@amsat.org>
|
|
@ -0,0 +1,17 @@
|
|||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
|
@ -27,8 +27,8 @@ if [ "$ACTION" = "ifdown" ] || [ "$ACTION" = "ifup" ] ; then
|
|||
if [ "$INTERFACE" == "lan" ] ; then
|
||||
ip rule del pref 30010 iif $DEVICE lookup 29
|
||||
ip rule del pref 30020 iif $DEVICE lookup 30
|
||||
ip rule del pref 30090 iif $DEVICE lookup 31
|
||||
ip rule del pref 30099 iif $DEVICE lookup main
|
||||
ip rule del pref 30090 iif $DEVICE lookup main
|
||||
ip rule del pref 30099 iif $DEVICE lookup 31
|
||||
fi
|
||||
|
||||
if [ "$INTERFACE" == "loopback" ] ; then
|
||||
|
@ -67,8 +67,8 @@ is_olsrgw=`cat /etc/config.mesh/_setup|grep -i olsrd_gw|cut -d ' ' -f 3`
|
|||
if [ "$INTERFACE" == "lan" ] ; then
|
||||
ip rule add pref 30010 iif $DEVICE lookup 29
|
||||
ip rule add pref 30020 iif $DEVICE lookup 30
|
||||
ip rule add pref 30090 iif $DEVICE lookup 31
|
||||
ip rule add pref 30099 iif $DEVICE lookup main
|
||||
ip rule add pref 30090 iif $DEVICE lookup main
|
||||
ip rule add pref 30099 iif $DEVICE lookup 31
|
||||
|
||||
# Lets go ahead and set the route to the local network here since we only need to be able to route to it after the interface comes up.
|
||||
lan_ipaddr=`uci -q get network.lan.ipaddr`
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
src/gz packages http://www.broadband-hamnet.org/download/attitude_adjustment/12.09/ar71xx/generic/packages
|
||||
src/gz packages http://downloads.bbhndev.org/attitude_adjustment/12.09/ar71xx/generic/packages
|
||||
dest root /
|
||||
dest ram /tmp
|
||||
lists_dir ext /var/opkg-lists
|
||||
|
|
|
@ -1,4 +1,22 @@
|
|||
#!/bin/sh
|
||||
<<'LICENSE'
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
LICENSE
|
||||
|
||||
DHCPLANSECTION=`uci show dhcp|grep interface=lan|sed "s/dhcp.\@dhcp\[\(.*\)\].interface=lan/\1/"`
|
||||
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl -w
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
$seq = 0;
|
||||
|
||||
|
|
|
@ -1,4 +1,24 @@
|
|||
#!/bin/sh
|
||||
<<'LICENSE'
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
LICENSE
|
||||
|
||||
[ -f /etc/config/run-fccid ] || exit
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#!/bin/sh
|
||||
# Copyright 2014 Conrad Lara
|
||||
|
||||
. /etc/functions.sh
|
||||
|
||||
include /lib/upgrade/
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/bin/sh
|
||||
<<'LICENSE'
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
LICENSE
|
||||
|
||||
|
||||
# this script displays the iptables commands that the firewall config file
|
||||
# generates without running them
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
#!/bin/sh
|
||||
<<'LICENSE'
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
LICENSE
|
||||
|
||||
|
||||
ifconfig -a | grep -B1 "inet addr"
|
||||
|
|
|
@ -1,4 +1,22 @@
|
|||
#!/bin/sh
|
||||
<<'LICENSE'
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
LICENSE
|
||||
|
||||
{
|
||||
while true; do
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl -w -I/www/cgi-bin
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
use perlfunc;
|
||||
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl -w
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
# do the initial setup of the essential nvram variables
|
||||
# node - node name
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl -w -I/www/cgi-bin
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
# this script generates the olsrd config file
|
||||
# static part comes from /etc/config/olsrd.conf
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
# do nothing if olsrd is not running
|
||||
exit if system "ps | grep -v grep | grep -q 'olsrd '";
|
||||
|
|
|
@ -1,31 +1,47 @@
|
|||
#!/usr/bin/perl
|
||||
#!/bin/sh
|
||||
<<'LICENSE'
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
# wait for the watchdog file to appear
|
||||
while(not -e "/tmp/olsrd.watchdog") { sleep 15 }
|
||||
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 version 3 of the License.
|
||||
|
||||
$failcount = 0;
|
||||
$last_olsrstamp = 0;
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
LICENSE
|
||||
|
||||
|
||||
while(1)
|
||||
{
|
||||
chomp ($olsr = `cat /tmp/olsrd.watchdog`);
|
||||
# wait for the watchdog file to appear before starting
|
||||
while [ ! -f "/tmp/olsrd.watchdog" ]
|
||||
do
|
||||
sleep 15
|
||||
done
|
||||
|
||||
if ( $olsr && $olsr ne $last_olsrstamp ){
|
||||
$failcount = 0;
|
||||
} else {
|
||||
$failcount += 1;
|
||||
}
|
||||
|
||||
if( $failcount >= 3 )
|
||||
{
|
||||
($uptime) = `cat /proc/uptime` =~ /^(\d+)/;
|
||||
$date = `date`;
|
||||
system qq(echo -n "$uptime $date" >> /tmp/olsrd.log);
|
||||
system "/etc/init.d/olsrd restart";
|
||||
}
|
||||
while true
|
||||
do
|
||||
|
||||
$last_olsrstamp = $olsr;
|
||||
if [ -f "/tmp/olsrd.watchdog" ]
|
||||
then
|
||||
rm -f "/tmp/olsrd.watchdog"
|
||||
else
|
||||
uptime=`cat /proc/uptime | cut -d' ' -f1`
|
||||
date=`date`
|
||||
echo "$uptime $date" >> /tmp/olsrd.log
|
||||
/etc/init.d/olsrd restart
|
||||
fi
|
||||
|
||||
# With interval of 5 seconds this gives ~3 chances
|
||||
# for a file write before next loop.
|
||||
sleep 15
|
||||
|
||||
done
|
||||
|
||||
sleep 10;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/bin/sh
|
||||
<<'LICENSE'
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
LICENSE
|
||||
|
||||
|
||||
N=`ls /tmp/*.trx 2>/dev/null | wc -l`
|
||||
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl -w
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
unless(defined ($pw = shift))
|
||||
{
|
||||
|
|
|
@ -1,4 +1,23 @@
|
|||
#!/usr/bin/perl -w -I/www/cgi-bin
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
use perlfunc;
|
||||
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl -w
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
sub usage
|
||||
{
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
BEGIN {push @INC, '/www/cgi-bin'};
|
||||
use perlfunc;
|
||||
|
@ -45,7 +66,7 @@ $patch_install = 0;
|
|||
%fw_md5 = ();
|
||||
|
||||
@serverpaths = (
|
||||
"http://broadband-hamnet.org/download/firmware/ubnt"
|
||||
"http://downloads.bbhndev.org/firmware/ubnt"
|
||||
);
|
||||
|
||||
# refresh fw
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
use perlfunc;
|
||||
|
||||
|
|
|
@ -1,4 +1,23 @@
|
|||
#!/usr/bin/perl
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
print "Content-type:text\r\n\r\n";
|
||||
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
$debug = 0;
|
||||
|
||||
|
|
|
@ -1,3 +1,25 @@
|
|||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
##########################
|
||||
# html functions
|
||||
|
||||
|
@ -999,6 +1021,17 @@ sub hardware_info
|
|||
'usechains' => 0,
|
||||
'rfband' => '5800ubntus',
|
||||
},
|
||||
'0xe212' => {
|
||||
'name' => 'airGrid M2',
|
||||
'comment' => 'airGrid M2 -- Reported as an hp',
|
||||
'supported' => '-2',
|
||||
'maxpower' => '28',
|
||||
'pwroffset' => '0',
|
||||
'antennas' => { 1 => 'airGrid' },
|
||||
'defaultant' => 1,
|
||||
'usechains' => 0,
|
||||
'rfband' => '2400',
|
||||
},
|
||||
'0xe215' => {
|
||||
'name' => 'airGrid M5',
|
||||
'comment' => 'airGrid M5',
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
$debug = 0;
|
||||
|
||||
|
@ -146,7 +167,7 @@ foreach(`cat /etc/config/dhcp`)
|
|||
$dhcp_start = $1 if /option start\s+(\d+)/;
|
||||
$dhcp_limit = $1 if /option limit\s+(\d+)/;
|
||||
}
|
||||
$dhcp_end = $dhcp_start + $dhcp_limit;
|
||||
$dhcp_end = $dhcp_start + $dhcp_limit - 1;
|
||||
|
||||
|
||||
#
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
$debug = 0;
|
||||
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
$debug = 0;
|
||||
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
$debug = 0;
|
||||
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
$debug = 0;
|
||||
BEGIN {push @INC, '/www/cgi-bin'};
|
||||
|
|
|
@ -1,4 +1,25 @@
|
|||
#!/usr/bin/perl
|
||||
=for commnet
|
||||
|
||||
Part of BBHN Mesh -- Used for creating Amateur Radio friendly mesh networks
|
||||
Copyright (C) 2015 Conrad Lara
|
||||
See Contributors file for additional contributors
|
||||
|
||||
Copyright (c) 2013 David Rivenburg et al. BroadBand-HamNet
|
||||
|
||||
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 version 3 of the License.
|
||||
|
||||
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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
=cut
|
||||
|
||||
BEGIN {push @INC, '/www/cgi-bin'};
|
||||
use perlfunc;
|
||||
|
|
Loading…
Reference in New Issue