firmware/bsp/dir300b_ap/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

39 lines
863 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 Mac-Addr of wifi interface if not right
HARDWARE_MACADDR=`cat /sys/class/ieee80211/phy0/macaddress`
SOFTWARE_MACADDR=`uci get wireless.@wifi-device[0].macaddr`
if [[ "$HARDWARE_MACADDR" != "$SOFTWARE_MACADDR" ]]; then
uci set wireless.@wifi-device[0].macaddr=$HARDWARE_MACADDR
uci commit
reboot
fi
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