Battlemesh logo
  • Comments
  • Edit
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
    • Edit SideBar
  • Login

Navigation

  • RecentChanges
  • FindPage
  • PastEvents
  • ContactUs
  • HelpContents

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
tën minüs twö plüs 6?

  • BattleMeshV3
  • NodeConfigScript
  • Babel

BattleMeshV3/NodeConfigScript/Babel

* this script uses opkg to download and install packages, be sure it has a gateway etc configured (look at the Zlan and adapt it to your need)


opkg update
opkg install kmod-ipv6
opkg install babeld

set -a

HOSTNAME="@PARAM1@"
WIRED_IP="@PARAM2@"
WIRELESS_IP="@PARAM3@"
CHANNEL="@PARAM4@"
CELL="@PARAM5@"

# setting wireless config
DEVICE=`uci get wireless.@wifi-iface[0].device`
uci delete wireless.$DEVICE.disabled
uci delete wireless.@wifi-iface[0].network
#uci delete wireless.@wifi-iface[0].rate

uci set wireless.$DEVICE.channel=$CHANNEL
uci set wireless.$DEVICE.hwmode=11g
uci set wireless.$DEVICE.txpower=20

uci set wireless.@wifi-iface[0].network=wlan
uci set wireless.@wifi-iface[0].ssid=wbm_babel
uci set wireless.@wifi-iface[0].encryption=none
uci set wireless.@wifi-iface[0].bssid=$CELL
uci set wireless.@wifi-iface[0].rate=54M
uci set wireless.@wifi-iface[0].bgscan=0
uci set wireless.@wifi-iface[0].bgscan=ahdemo

uci set network.wlan=interface
uci set network.wlan.proto=static
uci set network.wlan.ipaddr=$WIRELESS_IP
uci set network.wlan.netmask=255.255.255.0
uci commit wireless && wifi
uci commit network

#[edit] Configure the daemon
#
uci delete  babeld.wlan.ignore
uci commit babeld

#[edit] Enable the daemon
#
[ -f /etc/init.d/babeld ] && {
  /etc/init.d/babeld enable
  /etc/init.d/babeld start
} || { 
  echo " ERROR: babeld init script not found" 
  exit 1
}


#[edit] Disable the daemon
#
#[ -f /etc/init.d/babel ] && {
#  /etc/init.d/babeld stop
#  /etc/init.d/babeld disable
#}

reboot 
exit

The following should be put in /etc/babeld.conf. (Note that this could probably be done with uci -- merci Gabriel -- but I'm not sure how.)

redistribute local ip 10.10.42.0/24 allow
redistribute local ip fdba:1943:e753::/64 allow
redistribute local deny

in ip 10.10.42.0/24 allow
in ip fdba:1943:e753::/64 allow
in deny
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01