BattleMeshV3/NodeConfigScript/BMX hier beschreiben...

cd /tmp

rm bmx*_atheros.ipk

wget ftp://10.10.0.1/../BattleMesh2010/Images/bmx-uci-config_r1683-1_atheros.ipk
wget ftp://10.10.0.1/../BattleMesh2010/Images/bmx_r1683-1_atheros.ipk

opkg install bmx*_atheros.ipk


# setting wireless config
#

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
#
[ -f /etc/config/bmx ] && rm /etc/config/bmx

touch /etc/config/bmx

uci add bmx general

uci add bmx plugin
uci set bmx.@plugin[0]=plugin
uci set bmx.@plugin[0].plugin=bmx_uci_config.so


uci add bmx dev
uci set bmx.@dev[0]=dev
uci set bmx.@dev[0].dev=ath0:5

uci commit bmx


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

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


reboot 
exit

BattleMeshV3/NodeConfigScript/BMX (last edited 2010-06-03 21:35:49 by axel)