firmware/bsp/wrt54g_adhoc/root_file_system/etc/rc.local
Tim Niemeyer b4d756cb91 New build_script structure.
The new build_script uses a bsp-style interface. Now it's possible
to work on more than one board at the same time. Just select the
selected_bsp with the build_script and start over.

Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
2012-09-29 18:58:44 +02:00

38 lines
947 B
Text
Executable file

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
#set fixed mac address that is 1 lower than eth0 mac on br-mesh so that the ipv6 addres does not change after every reboot
#This idea is stolen from freifunk lübeck set_hostname.sh
MAC="`ip link show eth0 | grep "link/ether" | \
sed "s/^[ ]*//" | cut -d' ' -f2 | sed "s/://g" | \
tr 'a-z' 'A-Z'`"
MAC="`printf "%012X\n" $((0x$MAC - 0x01))`"
uci set network.mesh.macaddr=$MAC
uci commit
ifconfig br-mesh down
ifconfig br-mesh up
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
sh /etc/firewall.user
/etc/init.d/qos disable
/etc/init.d/qos stop
#busybox-httpd for crawldata
mkdir /tmp/crawldata
httpd -h /tmp/crawldata
sh /etc/configurator.sh
exit 0