# Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. BOARD=$(cat /var/sysinfo/board_name) if ! uci get board.model.name; then uci set board.model.name=BOARD fi . /etc/rc.local.$BOARD # collect environment info and write to dot-script /etc/environment.sh > /tmp/environment # 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