firmware/root_file_system/wrt54g_adhoc/etc/rc.local

37 lines
854 B
Plaintext
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 on br-mesh so that the ipv6 addres does not change after every reboot
HARDWARE_MACADDR_ETH0=`ifconfig -a eth0 | grep 'HWaddr' | awk '{ print $5}'`
HARDWARE_MACADDR_MESH=`ifconfig -a br-mesh | grep 'HWaddr' | awk '{ print $5}'`
if [[ "$HARDWARE_MACADDR_ETH0" != "$HARDWARE_MACADDR_MESH" ]]; then
uci set network.mesh.macaddr=$HARDWARE_MACADDR_ETH0
uci commit
reboot
fi
ifconfig br-mesh down
ifconfig br-mesh up
ifdown lan
ifup lan
rdate -s time.fu-berlin.de
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
httpd -h /tmp/
sh /etc/configurator.sh
exit 0