#!/bin/sh export DATE="27.09.2006" export TITLE="Verwaltung: IP-Vergabe" . ${0%/*}/cgi-bin-pre.sh cat<Verwaltung: IP-Vergabe EOF if [ "$REQUEST_METHOD" = "POST" ]; then read QUERY_STRING fi if [ -z "$QUERY_STRING" ]; then #Speedups stadt="$(nvram get ff_ipstadt)" projekt="$(nvram get ff_ipprojekt)" xnode="$(nvram get ff_ipxnode)" if [ -z "$projekt" ]; then projekt="224" fi if [ -z "$stadt" ]; then stadt="leipzig" fi if [ -z "$xnode" ]; then xnode="6" fi wan_dns="$(nvram get wan_dns)" #wan_dns="" fw_disable="$(nvram get fw_disable)" ff_hna4="$(nvram get ff_hna4)" cat<
Stadt:

Projekt: (0-255)
Node:

Nameserver:
Firewall:ausschalten
Administration:Fernwartung nicht zulassen
Freifunk-Blog:nicht anzeigen
 

Info: Mit diesen Einstellungen passt Ihr den vorliegenden Linksys komplett an die Bedürfnisse im Freifunk-Netzwerk an. Weitere Einstellungen auf anderen Verwaltungseiten sind eigentlich nicht notwendig und mit größter Vorsicht zu aendern.

Bei neuerworbenen Geraeten oder unerklärlichen Erscheinungen empfiehlt sich vor diesen Einstellungen ein Neustart mit den Grundeinstellungen des Bootloaders . Vorsicht mit den IP-Adressen, auch diese sind dann wieder auf Standardwerte gesetzt.

Vorsicht bei schon integrierten Nodes. OLSR-HNA- und LAN-Einstellungen werden zurückgesetzt! EOF else IFS=\&;set ${QUERY_STRING%%[^%&=+-:@-_a-z~]*};unset IFS;eval $* #Berechnungen fuer Anzeige und Umstellung ff_ipstadt=$stadt ff_ipprojekt=$projekt ff_ipxnode=$xnode wl0_channel="1" wl0_ssid="freifunk.net" ff_bssid="02:ca:ff:ee:ba:be" wmode="ad-hoc" wl0_frag="2346" wl0_rts="250" test "$stadt" = "leipzig" && wl0_ssid="leipzig.freifunk.net" test "$stadt" = "backbone" && wl0_ssid="backbone.leipzig.freifunk.net" test "$stadt" = "gadow" && wl0_ssid="gadow.freifunk.net" test "$stadt" = "halle" && wl0_ssid="halle.freifunk.net" test "$stadt" = "dresden" && wl0_ssid="dresden.freifunk.net" test "$stadt" = "hermsdorf" && wl0_ssid="hermsdorf.freifunk.net" test "$stadt" = "weissenfels" && wl0_ssid="weissenfels.freifunk.net" test "$stadt" = "cottbus" && wl0_ssid="cottbus.freifunk.net" test "$stadt" = "sundhausen" && wl0_ssid="sundhausen.freifunk.net" test "$stadt" = "schmalkalden" && wl0_ssid="schmalkalden.freifunk.net" test "$stadt" = "leisnig" && wl0_ssid="leisnig.freifunk.net" test "$stadt" = "naumburg" && wl0_ssid="naumburg.freifunk.net" wan_hostname="$projekt-$xnode" wifi_proto="static" wifi_ipaddr="104.61.$projekt.$xnode" wifi_netmask="255.0.0.0" wldhcp="" test "$xnode" = "1" && wldhcp="10.61.$projekt.52/30" test "$xnode" = "2" && wldhcp="10.61.$projekt.56/30" test "$xnode" = "3" && wldhcp="10.61.$projekt.60/30" test "$xnode" = "4" && wldhcp="10.61.$projekt.64/30" test "$xnode" = "5" && wldhcp="10.61.$projekt.68/30" test "$xnode" = "6" && wldhcp="10.61.$projekt.72/30" test "$xnode" = "7" && wldhcp="10.61.$projekt.76/30" test "$xnode" = "8" && wldhcp="10.61.$projekt.80/30" test "$xnode" = "9" && wldhcp="10.61.$projekt.84/30" test "$xnode" = "10" && wldhcp="10.61.$projekt.88/30" test "$xnode" = "11" && wldhcp="10.61.$projekt.92/30" test "$xnode" = "12" && wldhcp="10.61.$projekt.96/30" test "$xnode" = "13" && wldhcp="10.61.$projekt.100/30" test "$xnode" = "14" && wldhcp="10.61.$projekt.104/30" test "$xnode" = "15" && wldhcp="10.61.$projekt.108/30" test "$xnode" = "16" && wldhcp="10.61.$projekt.112/30" test "$xnode" = "17" && wldhcp="10.61.$projekt.116/30" test "$xnode" = "18" && wldhcp="10.61.$projekt.120/30" test "$xnode" = "19" && wldhcp="10.61.$projekt.124/30" test "$xnode" = "20" && wldhcp="10.61.$projekt.128/30" test "$xnode" = "21" && wldhcp="10.61.$projekt.132/30" test "$xnode" = "22" && wldhcp="10.61.$projekt.136/30" test "$xnode" = "23" && wldhcp="10.61.$projekt.140/30" test "$xnode" = "24" && wldhcp="10.61.$projekt.144/30" test "$xnode" = "25" && wldhcp="10.61.$projekt.148/30" test "$xnode" = "26" && wldhcp="10.61.$projekt.152/30" test "$xnode" = "27" && wldhcp="10.61.$projekt.156/30" test "$xnode" = "28" && wldhcp="10.61.$projekt.160/30" test "$xnode" = "29" && wldhcp="10.61.$projekt.164/30" test "$xnode" = "30" && wldhcp="10.61.$projekt.168/30" test "$xnode" = "31" && wldhcp="10.61.$projekt.172/30" test "$xnode" = "32" && wldhcp="10.61.$projekt.176/30" test "$xnode" = "33" && wldhcp="10.61.$projekt.180/30" test "$xnode" = "34" && wldhcp="10.61.$projekt.184/30" test "$xnode" = "35" && wldhcp="10.61.$projekt.188/30" test "$xnode" = "36" && wldhcp="10.61.$projekt.192/30" test "$xnode" = "37" && wldhcp="10.61.$projekt.196/30" test "$xnode" = "38" && wldhcp="10.61.$projekt.200/30" test "$xnode" = "39" && wldhcp="10.61.$projekt.204/30" test "$xnode" = "40" && wldhcp="10.61.$projekt.208/30" test "$xnode" = "41" && wldhcp="10.61.$projekt.212/30" test "$xnode" = "42" && wldhcp="10.61.$projekt.216/30" test "$xnode" = "43" && wldhcp="10.61.$projekt.220/30" test "$xnode" = "44" && wldhcp="10.61.$projekt.224/30" test "$xnode" = "45" && wldhcp="10.61.$projekt.228/30" test "$xnode" = "46" && wldhcp="10.61.$projekt.232/30" test "$xnode" = "47" && wldhcp="10.61.$projekt.236/30" test "$xnode" = "48" && wldhcp="10.61.$projekt.240/30" test "$xnode" = "49" && wldhcp="10.61.$projekt.244/30" test "$xnode" = "47" && wldhcp="10.61.$projekt.248/30" ff_wldhcp="$wldhcp,255.255.255.0" test "$wldhcp" = "" && ff_wldhcp="" ff_qoslev="2" ff_qos="yes" ff_dyngw="1" lan_proto="static" lan_ipaddr="192.168.1.1" lan_netmask="255.255.255.0" dhcp_start="10" dhcp_num="40" test "$stadt" = "backbone" && ff_wldhcp="" test "$stadt" = "backbone" && ff_bssid="02:ca:fe:ba:be:13" test "$stadt" = "backbone" && wl0_channel="13" if [ -n "$post_ip1" ]; then cat< EOF test "$projekt" = "224" && echo "

Bitte besorge Dir eine freie IP im Wiki, IP-Vergabe wird abgebrochen

" test "$projekt" = "224" && exit DIRTY= for V in ff_noblog ff_sshnoadmin ff_bssid dhcp_start dhcp_num wan_dns wan_hostname ff_ipstadt ff_ipprojekt ff_ipxnode wl0_ssid wl0_channel wifi_proto wifi_ipaddr wifi_netmask ff_wldhcp ff_qos ff_qoslevel lan_proto lan_ipaddr lan_netmask wl0_rts wl0_frag wmode fw_disable; do eval "C=\$$V" C=$(unescape $C) if [ "$C" != "$(nvram get $V)" ]; then DIRTY=1 nvram set $V="$C" fi done nvram set lan_proto="static" nvram set ff_lan_proto="static" nvram set wmode="ad-hoc" nvram set wl0_mode="sta" nvram set wl0_bcn="1000" nvram set wan_domain="ff" nvram set wl0_infra=0 nvram set ff_release="145l Freifunk Leipzig" nvram set wl0_country_code="DE" nvram set ff_tz="MET-1MEST-2,M3.3.0,M10.5.0" #nvram set ff_fisheye=1 ##falls geraet neu bzw. keine sendeleistung eingestellt txpwr="$(nvram get ff_txpwr)" if [ "$txpwr" = "" ]; then nvram set wl0_phytype=g nvram set wl_phytype=g nvram set ff_txpwr=20 nvram set wl0_antdiv=0 nvram set wl0_txant=0 #nvram set wl_antdiv=0 #nvram set ff_txant=0 fi # nvram variablen haben sich wohl geaendert if [ "$(nvram get wl0_txant)" = "" ]; then nvram set wl0_txant=0 nvram set wl0_antdiv=0 if [ "$(nvram get ff_txant)" = "1" ]; then nvram set wl0_txant=1 nvram set wl0_antdiv=1 fi fi #etwas gegen sonnenwinde und funkschatten nvram set wl0_lazywds=0 nvram set wl0_frameburst=off nvram set wl0_gmode=1 nvram set wl0_gmode_protection=off nvram set wl0_closed=0 #nvram set wl0_gmode_protection_control=2 #nvram set wl0_gmode_protection_cts=1 #nvram set wl0_gmode_protection_override=1 nvram unset wl0_gmode_protection_control nvram unset wl0_gmode_protection_cts nvram unset wl0_gmode_protection_override nvram unset wan_domain nvram unset wifi_gateway nvram unset ff_mtu # dhcpsplash defaults #for V in ff_dhcpsplash ff_dhcpsplash_wifi ff_dhcpsplash_lan ff_dhcpsplash_agurl ff_dhcpsplash_ag ff_dhcpsplash_hpurl ff_dhcpsplash_hp ff_dhcpsplash_block ff_dhcpsplash_time; do # nvram unset "$V" #done checkbridge nvram commit>/dev/null 2>&1 rm /etc/freshflash cat<
WLAN Kanal: $wl0_channel (Ad-hoc-Modus)
WLAN Tuning: B/G-Modus, CTS, kein WDS
WLAN SSID: $wl0_ssid
WLAN IP-Adresse: $wifi_ipaddr (statisch)
WLAN Netzmaske: $wifi_netmask
WLAN - für Clients DHCP: $wldhcp
OLSR Tuning: RTS=$wl0_rts/FRAG=$wl0_frag
OLSR Tuning: Fisheye-Routing, feste BSSID (02:ca:ff:ee:ba:be)
OLSR QoS mit ETX: $ff_qos / Level $ff_qoslev (Routen und Gateway)
Nameserver DNS: $wan_dns
LAN: IP-Adresse: $lan_ipaddr (statisch)
LAN: Netzmaske: $lan_netmask
LAN: DHCP-Start-IP: $dhcp_start
LAN: DHCP-Anzahl: $dhcp_num
Identifikation Name . Domain: $wan_hostname . ff
sonstiges Vorgaben: Firewall $(if [ "$fw_disable" = "1" ];then echo ': aus';fi) $(if [ "$fw_disable" = "0" ];then echo ': an';fi)
Fernwartung $(if [ "$fw_sshnoadmin" = "1" ];then echo ': aus';fi) $(if [ "$fw_sshnoadmin" = "0" ];then echo ': an';fi)
OLSR-HNA: $(if [ "$hna" = "" ];then echo 'aus';fi) $ff_hna4
bitte noch ein paar Sekunden warten, ggf. eigene Anpassungen (LAN-Kopplung?) vornehmen. Bitte neustarten, damit die Einstellungen wirksam werden:
   

Info: Du hast es so gut wie geschafft, das Gerät upzudaten.
Willkommen in der Freifunk-Community! EOF fi fi . ${0%/*}/cgi-bin-post.sh