forked from freifunk-franken/firmware
Set mtu of mesh interface to 1528, that is necesarry for batman advanced 2011.3.1, set fixed mac addr for wrt54g after an idea from freifunk lübeck, update wrt54g build config to get a smaller image so that the configuration is safed over reboot
This commit is contained in:
parent
81db29365c
commit
1aee19926f
|
@ -1,7 +1,7 @@
|
|||
#
|
||||
# Automatically generated make config: don't edit
|
||||
# OpenWrt version: Backfire (r28536)
|
||||
# Thu Nov 3 11:30:36 2011
|
||||
# Tue Nov 8 19:59:07 2011
|
||||
#
|
||||
CONFIG_HAVE_DOT_CONFIG=y
|
||||
# CONFIG_TARGET_ppc40x is not set
|
||||
|
@ -1066,7 +1066,7 @@ CONFIG_BUSYBOX_CONFIG_LOGGER=y
|
|||
CONFIG_PACKAGE_dnsmasq=y
|
||||
CONFIG_PACKAGE_dropbear=y
|
||||
# CONFIG_PACKAGE_ead is not set
|
||||
CONFIG_PACKAGE_firewall=y
|
||||
# CONFIG_PACKAGE_firewall is not set
|
||||
CONFIG_PACKAGE_hotplug2=y
|
||||
CONFIG_PACKAGE_libc=y
|
||||
CONFIG_PACKAGE_libgcc=y
|
||||
|
@ -1077,7 +1077,7 @@ CONFIG_PACKAGE_libgcc=y
|
|||
CONFIG_PACKAGE_mtd=y
|
||||
CONFIG_PACKAGE_nvram=y
|
||||
CONFIG_PACKAGE_opkg=y
|
||||
CONFIG_PACKAGE_qos-scripts=y
|
||||
# CONFIG_PACKAGE_qos-scripts is not set
|
||||
# CONFIG_PACKAGE_resolveip is not set
|
||||
CONFIG_PACKAGE_uci=y
|
||||
# CONFIG_PACKAGE_ucitrigger is not set
|
||||
|
@ -1538,7 +1538,6 @@ CONFIG_PACKAGE_tinc=y
|
|||
# CONFIG_PACKAGE_bwm is not set
|
||||
# CONFIG_PACKAGE_bwping is not set
|
||||
# CONFIG_PACKAGE_cdp-tools is not set
|
||||
# CONFIG_PACKAGE_chat is not set
|
||||
CONFIG_PACKAGE_crda=y
|
||||
# CONFIG_PACKAGE_cups is not set
|
||||
# CONFIG_PACKAGE_cutter is not set
|
||||
|
@ -1635,7 +1634,7 @@ CONFIG_PACKAGE_iw=y
|
|||
# CONFIG_PACKAGE_net-tools-plipconfig is not set
|
||||
# CONFIG_PACKAGE_net-tools-rarp is not set
|
||||
# CONFIG_PACKAGE_net-tools-slattach is not set
|
||||
CONFIG_PACKAGE_netcat=y
|
||||
# CONFIG_PACKAGE_netcat is not set
|
||||
# CONFIG_PACKAGE_netdiscover is not set
|
||||
# CONFIG_PACKAGE_netperf is not set
|
||||
# CONFIG_PACKAGE_netpipe is not set
|
||||
|
@ -1653,12 +1652,7 @@ CONFIG_PACKAGE_netcat=y
|
|||
# CONFIG_PACKAGE_paris-traceroute is not set
|
||||
# CONFIG_PACKAGE_pen is not set
|
||||
# CONFIG_PACKAGE_portmap is not set
|
||||
CONFIG_PACKAGE_ppp=y
|
||||
# CONFIG_PACKAGE_ppp-mod-pppoa is not set
|
||||
CONFIG_PACKAGE_ppp-mod-pppoe=y
|
||||
# CONFIG_PACKAGE_ppp-mod-radius is not set
|
||||
# CONFIG_PACKAGE_pppdump is not set
|
||||
# CONFIG_PACKAGE_pppstats is not set
|
||||
# CONFIG_PACKAGE_ppp is not set
|
||||
# CONFIG_PACKAGE_pptp is not set
|
||||
# CONFIG_PACKAGE_qolyester is not set
|
||||
# CONFIG_PACKAGE_raddump is not set
|
||||
|
@ -2655,7 +2649,7 @@ CONFIG_PACKAGE_MAC80211_DEBUGFS=y
|
|||
#
|
||||
# CONFIG_PACKAGE_joe is not set
|
||||
# CONFIG_PACKAGE_mg is not set
|
||||
CONFIG_PACKAGE_nano=y
|
||||
# CONFIG_PACKAGE_nano is not set
|
||||
# CONFIG_PACKAGE_vim is not set
|
||||
# CONFIG_PACKAGE_vim-full is not set
|
||||
# CONFIG_PACKAGE_vim-help is not set
|
||||
|
@ -2786,7 +2780,6 @@ CONFIG_PACKAGE_nano=y
|
|||
# CONFIG_PACKAGE_cksfv is not set
|
||||
# CONFIG_PACKAGE_cmdpad is not set
|
||||
# CONFIG_PACKAGE_collectd is not set
|
||||
# CONFIG_PACKAGE_comgt is not set
|
||||
# CONFIG_PACKAGE_coreutils is not set
|
||||
# CONFIG_PACKAGE_cpusage is not set
|
||||
# CONFIG_PACKAGE_crypto-tools is not set
|
||||
|
|
|
@ -10,7 +10,7 @@ config 'interface' 'loopback'
|
|||
|
||||
config 'interface' 'wlanmesh'
|
||||
option 'ifname' 'ath1'
|
||||
option 'mtu' '1527'
|
||||
option 'mtu' '1528'
|
||||
|
||||
config 'interface' 'mesh'
|
||||
option 'type' 'bridge'
|
||||
|
|
|
@ -10,7 +10,7 @@ config 'interface' 'lan'
|
|||
|
||||
config 'interface' 'wlanmesh'
|
||||
option 'ifname' 'ath1'
|
||||
option 'mtu' '1527'
|
||||
option 'mtu' '1528'
|
||||
|
||||
config 'interface' 'mesh'
|
||||
option 'type' 'bridge'
|
||||
|
|
|
@ -38,6 +38,7 @@ config interface wlan0
|
|||
option proto static
|
||||
option ipaddr 192.168.2.1
|
||||
option netmask 255.255.255.0
|
||||
option mtu 1528
|
||||
|
||||
config interface mesh
|
||||
option type bridge
|
||||
|
|
|
@ -1,20 +1,15 @@
|
|||
# Put your custom commands here that should be executed once
|
||||
# the system init finished. By default this file does nothing.
|
||||
|
||||
#set fixed mac address on br-mesh so that the ipv6 addres does not change after every reboot
|
||||
HARDWARE_MACADDR=`ifconfig -a br-mesh | grep 'HWaddr' | awk '{ print $5}'`
|
||||
uci set network.mesh.macaddr=$HARDWARE_MACADDR
|
||||
uci commit
|
||||
#set fixed mac address that is 1 lower than eth0 mac on br-mesh so that the ipv6 addres does not change after every reboot
|
||||
#This idea is stolen from freifunk lübeck set_hostname.sh
|
||||
MAC="`ip link show eth0 | grep "link/ether" | \
|
||||
sed "s/^[ ]*//" | cut -d' ' -f2 | sed "s/://g" | \
|
||||
tr 'a-z' 'A-Z'`"
|
||||
MAC="`printf "%012X\n" $((0x$MAC - 0x01))`"
|
||||
|
||||
#This does not work for fixed mac (why not?!)
|
||||
#HARDWARE_MACADDR_ETH0=`ifconfig -a eth0 | grep 'HWaddr' | awk '{ print $5}'`
|
||||
#HARDWARE_MACADDR_MESH=`ifconfig -a br-mesh | grep 'HWaddr' | awk '{ print $5}'`
|
||||
#
|
||||
#if [[ "$HARDWARE_MACADDR_ETH0" != "$HARDWARE_MACADDR_MESH" ]]; then
|
||||
# uci set network.mesh.macaddr=$HARDWARE_MACADDR_ETH0
|
||||
# uci commit
|
||||
# reboot
|
||||
#fi
|
||||
uci set network.mesh.macaddr=$MAC
|
||||
uci commit
|
||||
|
||||
ifconfig br-mesh down
|
||||
ifconfig br-mesh up
|
||||
|
|
Loading…
Reference in New Issue
Block a user