Changeset 8
- Timestamp:
- 08/26/09 16:30:10 (3 years ago)
- Files:
-
- 1 added
- 4 modified
-
Makefile (modified) (2 diffs)
-
packages/robin-ng/files/etc/crontabs/root (modified) (1 diff)
-
packages/robin-ng/files/etc/init.d/first_boot (modified) (3 diffs)
-
packages/robin-ng/files/sbin/check_inet.sh (modified) (2 diffs)
-
patches/batman-adv-incoming-if-based-routing.patch (added)
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r7 r8 28 28 PATCHES_PATH = patches 29 29 30 BATMAN_VERSION = 134 130 BATMAN_VERSION = 1343 31 31 32 32 PACKAGE_LIST = utils/bash net/batman-advanced net/dhcp utils/lsof net/nodogsplash net/tcpdump net/mii-tool 33 33 34 34 35 all: owrt_checkout owrt_ config build_robin35 all: owrt_checkout owrt_patches owrt_config build_robin 36 36 37 37 owrt_checkout: 38 38 svn co -r $(OWRT_DIST_SVN_REV) svn://svn.openwrt.org/$(OWRT_DIST_SVN_PATH) $(OWRT_DIST_LOCAL_PATH) 39 39 svn co -r $(OWRT_PKG_SVN_REV) svn://svn.openwrt.org/$(OWRT_PKG_SVN_PATH) $(OWRT_PKG_LOCAL_PATH) 40 touch $@ 41 42 owrt_patches: 40 43 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/ 41 45 touch $@ 42 46 … … 57 61 distclean: 58 62 rm -rf owrt_checkout $(OWRT_DIST_LOCAL_PATH) $(OWRT_PKG_LOCAL_PATH) 59 rm -rf owrt_ config63 rm -rf owrt_patches owrt_config 60 64 -
packages/robin-ng/files/etc/crontabs/root
r2 r8 2 2 0-59/2 * * * * /sbin/check_inet.sh 3 3 0-59/2 * * * * /sbin/hw_watchdog.sh 4 0-59/5 * * * * /sbin/dashboard_checkin.sh -
packages/robin-ng/files/etc/init.d/first_boot
r7 r8 5 5 NET_CONF="$CONFIG_DIR/network" 6 6 WIFI_CONF="$CONFIG_DIR/wireless" 7 NODOG_CONF="/etc/nodogsplash/nodogsplash.conf" 7 8 8 9 … … 25 26 option bssid 02:CA:FE:CA:CA:40 26 27 option encryption none 27 option mcast_rate 550028 # option mcast_rate 5500 28 29 option wmm 1 29 30 … … 48 49 option 'ifname' 'ap0' 49 50 option 'type' 'bridge' 50 option 'proto' 'static'" >> $NET_CONF 51 option 'proto' 'dhcp'" >> $NET_CONF 52 fi 53 54 if [ -z "`grep 'GatewayInterface.*br-ap' $NODOG_CONF 2>/dev/null`" ] 55 then 56 echo " 57 FirewallRuleSet preauthenticated-users { 58 FirewallRule allow 59 } 60 FirewallRuleSet authenticated-users { 61 FirewallRule allow 62 } 63 FirewallRuleSet 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 } 74 GatewayName robin 75 ClientIdleTimeout 40 76 ClientForceTimeout 40 77 AuthenticateImmediately 1 78 TrafficControl 1 79 DownloadLimit 500 80 UploadLimit 100 81 GatewayInterface br-ap" > $NODOG_CONF 51 82 fi 52 83 53 84 uci set batman-adv-kernelland.general.interface="mesh0" 54 85 uci commit 55 56 sed -i 's/^GatewayInterface.*$/GatewayInterface eth0/' /etc/nodogsplash/nodogsplash.conf57 86 58 87 /etc/init.d/dhcpd disable -
packages/robin-ng/files/sbin/check_inet.sh
r7 r8 14 14 then 15 15 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-servers16 grep nameserver /etc/resolv.conf | awk -F' ' '{print "option domain-name-servers " $2 ";"}' > /etc/dhcpd.name-servers 17 17 18 18 /etc/init.d/dhcpd start … … 24 24 fi 25 25 26 # we have another udhcpc running on the ap / mesh bridge interface 27 UDHCP_PID=`ps ax | grep udhcpc | grep $LAN_IF | awk -F' ' '{print $1}'` 28 kill $UDHCP_PID 26 29 27 killall udhcpc28 30 MAC="`ifconfig $LAN_IF | grep HWaddr | awk -F':' '{print "0x"$5,"0x"$6,"0x"$7}'`" 29 ifconfig br-ap `printf "5.%i.%i.%i" $MAC`31 ifconfig br-ap:adm `printf "5.%i.%i.%i" $MAC` 30 32 31 33 # another batman on the ethernet line detected - bonding mode
