All: add ethernet ports to batman

This should fix #469

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Tim Niemeyer 2013-02-16 15:45:14 +01:00
parent ec45377d23
commit d6d2fdb773
7 changed files with 20 additions and 42 deletions

View File

@ -1,15 +1,6 @@
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
# batman seems to be to stupid to regocnice the devices
# todo: uci.get ..
batctl if add eth0.3
batctl if add eth0.4
batctl if add wlan0-1
#echo none > /sys/devices/platform/ar231x-wmac.0/leds/ath5k-phy0\:\:rx/trigger
#echo phy0tx > /sys/devices/platform/ar231x-wmac.0/leds/ath5k-phy0\:\:tx/trigger
# todo: all devices or only dir300 ?
if uci get network.mesh.macaddr
then
@ -33,6 +24,10 @@ else
fi
fi
batctl if add wlan0-1
batctl if add br-ethmesh1
batctl if add br-ethmesh2
# Starting NTP-Client Daemon
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"

View File

@ -1,15 +1,6 @@
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
# batman seems to be to stupid to regocnice the devices
# todo: uci.get ..
#batctl if add eth0.3
#batctl if add eth0.4
batctl if add wlan0-1
#echo none > /sys/devices/platform/ar231x-wmac.0/leds/ath5k-phy0\:\:rx/trigger
#echo phy0tx > /sys/devices/platform/ar231x-wmac.0/leds/ath5k-phy0\:\:tx/trigger
# todo: all devices or only dir300 ?
if uci get network.mesh.macaddr
then
@ -33,9 +24,12 @@ else
fi
fi
batctl if add wlan0-1
batctl if add br-ethmesh1
batctl if add br-ethmesh2
# Starting NTP-Client Daemon
# uses to much ram
#ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
#. /etc/firewall.user

View File

@ -1,14 +1,6 @@
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
# batman seems to be to stupid to regocnice the devices
# todo: uci.get ..
#batctl if add eth0.3
#batctl if add eth0.4
batctl if add wlan0-1
#echo none > /sys/devices/platform/ar231x-wmac.0/leds/ath5k-phy0\:\:rx/trigger
#echo phy0tx > /sys/devices/platform/ar231x-wmac.0/leds/ath5k-phy0\:\:tx/trigger
#. /etc/firewall.user
@ -40,8 +32,9 @@ else
fi
fi
batctl if add wlan0-1
# Starting NTP-Client Daemon
# uses to much ram
#ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
exit 0

View File

@ -14,23 +14,13 @@
# 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
#ifdown lan
#ifup lan
batctl if add br-ethmesh1
batctl if add br-ethmesh2
# 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
. /etc/firewall.user
/etc/init.d/qos disable

View File

@ -15,6 +15,8 @@ if [[ "$WLAN0_MACADDR=" != "$BRMESH_MACADDR=" ]]; then
fi
batctl if add wlan0-1
batctl if add br-ethmesh1
batctl if add br-ethmesh2
# Starting NTP-Client Daemon
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"

View File

@ -15,6 +15,8 @@ if [[ "$WLAN0_MACADDR=" != "$BRMESH_MACADDR=" ]]; then
fi
batctl if add wlan0-1
batctl if add br-ethmesh1
batctl if add br-ethmesh2
# Starting NTP-Client Daemon
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"

View File

@ -15,6 +15,8 @@ if [[ "$WLAN0_MACADDR=" != "$BRMESH_MACADDR=" ]]; then
fi
batctl if add wlan0-1
batctl if add br-ethmesh1
batctl if add br-ethmesh2
# Starting NTP-Client Daemon
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"