Changeset 8

Show
Ignore:
Timestamp:
08/26/09 16:30:10 (3 years ago)
Author:
marek
Message:

* adding batman patch for incoming interface based routing * move static IP to br-ap:adm alias interface to run dhcp on the bridge interface * intergrate nodogsplash config * deactivate fixed mcast rate

Files:
1 added
4 modified

Legend:

Unmodified
Added
Removed
  • Makefile

    r7 r8  
    2828PATCHES_PATH = patches 
    2929 
    30 BATMAN_VERSION = 1341 
     30BATMAN_VERSION = 1343 
    3131 
    3232PACKAGE_LIST = utils/bash net/batman-advanced net/dhcp utils/lsof net/nodogsplash net/tcpdump net/mii-tool 
    3333 
    3434 
    35 all: owrt_checkout owrt_config build_robin 
     35all: owrt_checkout owrt_patches owrt_config build_robin 
    3636 
    3737owrt_checkout: 
    3838        svn co -r $(OWRT_DIST_SVN_REV) svn://svn.openwrt.org/$(OWRT_DIST_SVN_PATH) $(OWRT_DIST_LOCAL_PATH) 
    3939        svn co -r $(OWRT_PKG_SVN_REV) svn://svn.openwrt.org/$(OWRT_PKG_SVN_PATH) $(OWRT_PKG_LOCAL_PATH) 
     40        touch $@ 
     41 
     42owrt_patches: 
    4043        cd $(OWRT_PKG_LOCAL_PATH) && patch -p0 < ../$(PATCHES_PATH)/nodogsplash-init-script.patch 
     44        cp $(PATCHES_PATH)/batman-adv-incoming-if-based-routing.patch $(OWRT_PKG_LOCAL_PATH)/net/batman-advanced/patches/ 
    4145        touch $@ 
    4246 
     
    5761distclean: 
    5862        rm -rf owrt_checkout $(OWRT_DIST_LOCAL_PATH) $(OWRT_PKG_LOCAL_PATH) 
    59         rm -rf owrt_config 
     63        rm -rf owrt_patches owrt_config 
    6064 
  • packages/robin-ng/files/etc/crontabs/root

    r2 r8  
    220-59/2 * * * * /sbin/check_inet.sh 
    330-59/2 * * * * /sbin/hw_watchdog.sh 
     40-59/5 * * * * /sbin/dashboard_checkin.sh 
  • packages/robin-ng/files/etc/init.d/first_boot

    r7 r8  
    55NET_CONF="$CONFIG_DIR/network" 
    66WIFI_CONF="$CONFIG_DIR/wireless" 
     7NODOG_CONF="/etc/nodogsplash/nodogsplash.conf" 
    78 
    89 
     
    2526        option bssid 02:CA:FE:CA:CA:40 
    2627        option encryption none 
    27         option mcast_rate 5500 
     28#        option mcast_rate 5500 
    2829        option wmm 1 
    2930 
     
    4849        option 'ifname' 'ap0' 
    4950        option 'type' 'bridge' 
    50         option 'proto' 'static'" >> $NET_CONF 
     51        option 'proto' 'dhcp'" >> $NET_CONF 
     52fi 
     53 
     54if [ -z "`grep 'GatewayInterface.*br-ap' $NODOG_CONF 2>/dev/null`" ] 
     55   then 
     56      echo " 
     57FirewallRuleSet preauthenticated-users { 
     58    FirewallRule allow 
     59} 
     60FirewallRuleSet authenticated-users { 
     61    FirewallRule allow 
     62} 
     63FirewallRuleSet users-to-router { 
     64    FirewallRule allow udp port 53 
     65    FirewallRule allow tcp port 53 
     66    FirewallRule allow udp port 67 
     67    FirewallRule allow tcp port 20 
     68    FirewallRule allow tcp port 21 
     69    FirewallRule allow tcp port 22 
     70    FirewallRule allow tcp port 23 
     71    FirewallRule allow tcp port 80 
     72    FirewallRule allow tcp port 443 
     73} 
     74GatewayName robin 
     75ClientIdleTimeout 40 
     76ClientForceTimeout 40 
     77AuthenticateImmediately 1 
     78TrafficControl 1 
     79DownloadLimit 500 
     80UploadLimit 100 
     81GatewayInterface br-ap" > $NODOG_CONF 
    5182fi 
    5283 
    5384uci set batman-adv-kernelland.general.interface="mesh0" 
    5485uci commit 
    55  
    56 sed -i 's/^GatewayInterface.*$/GatewayInterface eth0/' /etc/nodogsplash/nodogsplash.conf 
    5786 
    5887/etc/init.d/dhcpd disable 
  • packages/robin-ng/files/sbin/check_inet.sh

    r7 r8  
    1414   then 
    1515      ifconfig br-ap 192.168.150.1 netmask 255.255.255.0 
    16       grep nameserver /etc/resolv.conf | awk -F' ' '{ print "option domain-name-servers " $2 ";" }' > /etc/dhcpd.name-servers 
     16      grep nameserver /etc/resolv.conf | awk -F' ' '{print "option domain-name-servers " $2 ";"}' > /etc/dhcpd.name-servers 
    1717 
    1818      /etc/init.d/dhcpd start 
     
    2424fi 
    2525 
     26# we have another udhcpc running on the ap / mesh bridge interface 
     27UDHCP_PID=`ps ax | grep udhcpc | grep $LAN_IF | awk -F' ' '{print $1}'` 
     28kill $UDHCP_PID 
    2629 
    27 killall udhcpc 
    2830MAC="`ifconfig $LAN_IF | grep HWaddr | awk -F':' '{print "0x"$5,"0x"$6,"0x"$7}'`" 
    29 ifconfig br-ap `printf "5.%i.%i.%i" $MAC` 
     31ifconfig br-ap:adm `printf "5.%i.%i.%i" $MAC` 
    3032 
    3133# another batman on the ethernet line detected - bonding mode