forked from freifunk-franken/firmware
All: add ethernet ports to batman
This should fix #469 Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
parent
ec45377d23
commit
d6d2fdb773
|
@ -1,15 +1,6 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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 ?
|
# todo: all devices or only dir300 ?
|
||||||
if uci get network.mesh.macaddr
|
if uci get network.mesh.macaddr
|
||||||
then
|
then
|
||||||
|
@ -33,6 +24,10 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
batctl if add wlan0-1
|
||||||
|
batctl if add br-ethmesh1
|
||||||
|
batctl if add br-ethmesh2
|
||||||
|
|
||||||
# Starting NTP-Client Daemon
|
# Starting NTP-Client Daemon
|
||||||
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,6 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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 ?
|
# todo: all devices or only dir300 ?
|
||||||
if uci get network.mesh.macaddr
|
if uci get network.mesh.macaddr
|
||||||
then
|
then
|
||||||
|
@ -33,9 +24,12 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
batctl if add wlan0-1
|
||||||
|
batctl if add br-ethmesh1
|
||||||
|
batctl if add br-ethmesh2
|
||||||
|
|
||||||
# Starting NTP-Client Daemon
|
# 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
|
#. /etc/firewall.user
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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
|
#. /etc/firewall.user
|
||||||
|
|
||||||
|
@ -40,8 +32,9 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
batctl if add wlan0-1
|
||||||
|
|
||||||
# Starting NTP-Client Daemon
|
# 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
|
exit 0
|
||||||
|
|
|
@ -14,23 +14,13 @@
|
||||||
# reboot
|
# reboot
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
#batctl if add eth0.3
|
|
||||||
#batctl if add eth0.4
|
|
||||||
batctl if add wlan0-1
|
batctl if add wlan0-1
|
||||||
|
batctl if add br-ethmesh1
|
||||||
#ifconfig br-mesh down
|
batctl if add br-ethmesh2
|
||||||
#ifconfig br-mesh up
|
|
||||||
|
|
||||||
#ifdown lan
|
|
||||||
#ifup lan
|
|
||||||
|
|
||||||
# Starting NTP-Client Daemon
|
# Starting NTP-Client Daemon
|
||||||
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
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/firewall.user
|
||||||
|
|
||||||
/etc/init.d/qos disable
|
/etc/init.d/qos disable
|
||||||
|
|
|
@ -15,6 +15,8 @@ if [[ "$WLAN0_MACADDR=" != "$BRMESH_MACADDR=" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
batctl if add wlan0-1
|
batctl if add wlan0-1
|
||||||
|
batctl if add br-ethmesh1
|
||||||
|
batctl if add br-ethmesh2
|
||||||
|
|
||||||
# Starting NTP-Client Daemon
|
# Starting NTP-Client Daemon
|
||||||
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
||||||
|
|
|
@ -15,6 +15,8 @@ if [[ "$WLAN0_MACADDR=" != "$BRMESH_MACADDR=" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
batctl if add wlan0-1
|
batctl if add wlan0-1
|
||||||
|
batctl if add br-ethmesh1
|
||||||
|
batctl if add br-ethmesh2
|
||||||
|
|
||||||
# Starting NTP-Client Daemon
|
# Starting NTP-Client Daemon
|
||||||
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
||||||
|
|
|
@ -15,6 +15,8 @@ if [[ "$WLAN0_MACADDR=" != "$BRMESH_MACADDR=" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
batctl if add wlan0-1
|
batctl if add wlan0-1
|
||||||
|
batctl if add br-ethmesh1
|
||||||
|
batctl if add br-ethmesh2
|
||||||
|
|
||||||
# Starting NTP-Client Daemon
|
# Starting NTP-Client Daemon
|
||||||
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
ntpd -p "fe80::201:2ff:fe03:405%br-mesh"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user