diff --git a/mote/v1/openwrt/files/etc/rc.local b/mote/v1/openwrt/files/etc/rc.local new file mode 100644 index 0000000..cd74ce0 --- /dev/null +++ b/mote/v1/openwrt/files/etc/rc.local @@ -0,0 +1,7 @@ +# Put your custom commands here that should be executed once +# the system init finished. By default this file does nothing. + +# set the wifi led pin (=GPIO 4) direction to output +gpioctl dirout 4 + +exit 0 diff --git a/mote/v1/openwrt/files/etc/sysctl.conf b/mote/v1/openwrt/files/etc/sysctl.conf new file mode 100644 index 0000000..6f91a3c --- /dev/null +++ b/mote/v1/openwrt/files/etc/sysctl.conf @@ -0,0 +1,28 @@ +kernel.panic=3 +net.ipv4.conf.default.arp_ignore=1 +net.ipv4.conf.all.arp_ignore=1 +net.ipv4.ip_forward=1 +net.ipv4.icmp_echo_ignore_broadcasts=1 +net.ipv4.icmp_ignore_bogus_error_responses=1 +net.ipv4.tcp_ecn=0 +net.ipv4.tcp_fin_timeout=30 +net.ipv4.tcp_keepalive_time=120 +net.ipv4.tcp_syncookies=1 +net.ipv4.tcp_timestamps=0 +net.core.netdev_max_backlog=30 +net.netfilter.nf_conntrack_checksum=0 +net.ipv4.netfilter.ip_conntrack_checksum=0 +net.ipv4.netfilter.ip_conntrack_max=16384 +net.ipv4.netfilter.ip_conntrack_tcp_timeout_established=3600 +net.ipv4.netfilter.ip_conntrack_udp_timeout=60 +net.ipv4.netfilter.ip_conntrack_udp_timeout_stream=180 +# net.ipv6.conf.all.forwarding=1 + +# disable bridge firewalling by default +net.bridge.bridge-nf-call-arptables=0 +net.bridge.bridge-nf-call-ip6tables=0 +net.bridge.bridge-nf-call-iptables=0 + +# blink the wifi led +dev.wifi0.softled=1 +dev.wifi0.ledpin=4