WR1043ND: ported to new image

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Tim Niemeyer 2012-09-30 02:54:58 +02:00
parent 94f6c24f3e
commit a4499d466b
5 changed files with 1520 additions and 911 deletions

View File

@ -12,8 +12,8 @@ board_prebuild() {
}
board_postbuild() {
cp $target/bin/ar71xx/openwrt-ar71xx-tl-wr1043nd-v1-squashfs-factory.bin ./bin/
cp $target/bin/ar71xx/openwrt-ar71xx-tl-wr1043nd-v1-squashfs-sysupgrade.bin ./bin/
cp $target/bin/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin ./bin/
cp $target/bin/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin ./bin/
}
board_flash() {

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +0,0 @@
config 'mesh' 'bat0'
option 'interfaces' 'wlan0-1 eth0.3 eth0.4'
option 'aggregated_ogms'
option 'bonding'
option 'fragmentation'
option 'gw_bandwidth'
option 'gw_mode'
option 'gw_sel_class'
option 'log_level'
option 'orig_interval'
option 'vis_mode'

View File

@ -1,7 +1,7 @@
config wifi-device radio0
option type mac80211
option channel 6
option macaddr d8:5d:4c:9c:2d:a6
option phy phy0
option hwmode 11ng
option htmode HT20
list ht_capab SHORT-GI-40

View File

@ -2,32 +2,36 @@
# the system init finished. By default this file does nothing.
#Set Mac-Addr of wr1043nd wifi interface if not right
HARDWARE_MACADDR=`ifconfig -a wlan0 | grep 'HWaddr' | awk '{ print $5}'`
SOFTWARE_MACADDR=`uci get wireless.@wifi-device[0].macaddr`
#HARDWARE_MACADDR=`ifconfig -a wlan0 | grep 'HWaddr' | awk '{ print $5}'`
#SOFTWARE_MACADDR=`uci get wireless.@wifi-device[0].macaddr`
#
#if [[ "$HARDWARE_MACADDR" != "$SOFTWARE_MACADDR" ]]; then
# uci set wireless.@wifi-device[0].macaddr=$HARDWARE_MACADDR
# uci commit
# #wait before reboot to generate tinc certificates and to be able
# #to login over ssh bevore reboot in case of errors
# sleep 30
# reboot
#fi
if [[ "$HARDWARE_MACADDR" != "$SOFTWARE_MACADDR" ]]; then
uci set wireless.@wifi-device[0].macaddr=$HARDWARE_MACADDR
uci commit
#wait before reboot to generate tinc certificates and to be able
#to login over ssh bevore reboot in case of errors
sleep 30
reboot
fi
#batctl if add eth0.3
#batctl if add eth0.4
batctl if add wlan0-1
ifconfig br-mesh down
ifconfig br-mesh up
#ifconfig br-mesh down
#ifconfig br-mesh up
ifdown lan
ifup lan
#ifdown lan
#ifup lan
# Starting NTP-Client Daemon
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
chown root.root /etc/crontabs/root
/etc/init.d/cron stop
/etc/init.d/cron start
#chown root.root /etc/crontabs/root
#/etc/init.d/cron stop
#/etc/init.d/cron start
sh /etc/firewall.user
. /etc/firewall.user
/etc/init.d/qos disable
/etc/init.d/qos stop
@ -36,6 +40,6 @@ sh /etc/firewall.user
mkdir /tmp/crawldata
httpd -h /tmp/crawldata
sh /etc/configurator.sh
#sh /etc/configurator.sh
exit 0