firmware/bsp/default/root_file_system/etc/rc.local.tpl

27 lines
599 B
Smarty
Executable File

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
# collect environment info and write to dot-script
/etc/environment.sh > /tmp/environment
. /etc/rc.local.board
# Starting NTP-Client Daemon
ntpd -p ${NTPD_IP}
. /etc/firewall.user
/etc/init.d/qos disable
/etc/init.d/qos stop
#busybox-httpd for crawldata
mkdir /tmp/crawldata
httpd -h /tmp/crawldata
# serve the 30s-cached output of "report.sh gzip" on port 81 with max 1 request/s
/etc/serve.sh 81 1 "/etc/cache.sh 30 /etc/report.sh gzip"
touch /tmp/started
exit 0