| #!/bin/sh |
| |
| echo "Starting rc.local..." |
| |
| #ifconfig lo 127.0.0.1 up |
| |
| KVER=`uname -r` |
| |
| MODULE_PATH=/lib/modules/$KVER/net |
| |
| if [ -f $MODULE_PATH/nf_conntrack_rtsp.ko ]; then |
| insmod $MODULE_PATH/nf_conntrack_rtsp.ko |
| fi |
| if [ -f $MODULE_PATH/nf_nat_rtsp.ko ]; then |
| insmod $MODULE_PATH/nf_nat_rtsp.ko |
| fi |
| if [ -f $MODULE_PATH/ipt_classify.ko ]; then |
| insmod $MODULE_PATH/ipt_classify.ko |
| fi |
| if [ -f $MODULE_PATH/xt_webstr.ko ]; then |
| insmod $MODULE_PATH/xt_webstr.ko |
| fi |
| |
| if [ -f $MODULE_PATH/mt7915_ap.ko ]; then |
| insmod $MODULE_PATH/mt7915_ap.ko |
| fi |
| |
| echo 2 > /proc/sys/net/ipv6/conf/default/accept_dad |
| echo 1 > /proc/sys/net/ipv6/conf/all/forwarding |
| |
| # add this to support up to 20 PPTP tunnel |
| echo 40 > /proc/sys/net/netfilter/nf_conntrack_expect_max |
| |
| rm -rf /etc_rw/udhcpd*.pid |
| |
| #ln -sf "/etc/zoneinfo/Asia/Shanghai" /etc/localtime |
| ln -sf "/etc_rw/localtime" /etc/localtime |
| if [ ! -L /etc_rw/localtime ]; then |
| ln -sf "/usr/share/zoneinfo/Asia/Shanghai" /etc_rw/localtime |
| fi |
| |
| echo "open nvserver at_ctl nv-rpc-daemon zxic_mainctrl rtc-service" > /proc/abnormal_exit_task |
| #jb.qi@20230918 delete for autosuspend |
| zxic_ramdump > /tmp/ramdump.txt 2>&1 & |