From 57241371cb70639d7933934170104e298d899914 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Tue, 26 Apr 2011 11:40:48 +0800 Subject: [PATCH] optimize for ben nanonote disable mount memcard make 192.168.254.101 as the default ip address opkg.conf keep opkg files to /root --- .../linux/xburst/base-files/etc/config/fstab | 6 ----- .../xburst/base-files/etc/config/network | 4 ++- target/linux/xburst/base-files/etc/hosts | 1 + target/linux/xburst/base-files/etc/inittab | 8 ++++++ target/linux/xburst/base-files/etc/opkg.conf | 5 ++++ .../linux/xburst/base-files/etc/sysctl.conf | 26 +++++++++++++++++++ 6 files changed, 43 insertions(+), 7 deletions(-) delete mode 100644 target/linux/xburst/base-files/etc/config/fstab create mode 100644 target/linux/xburst/base-files/etc/hosts create mode 100644 target/linux/xburst/base-files/etc/inittab create mode 100644 target/linux/xburst/base-files/etc/opkg.conf create mode 100644 target/linux/xburst/base-files/etc/sysctl.conf diff --git a/target/linux/xburst/base-files/etc/config/fstab b/target/linux/xburst/base-files/etc/config/fstab deleted file mode 100644 index 522356112..000000000 --- a/target/linux/xburst/base-files/etc/config/fstab +++ /dev/null @@ -1,6 +0,0 @@ -config mount - option target /card - option device /dev/mmcblk0p1 - option fstype auto - option options rw,sync - option enabled 1 diff --git a/target/linux/xburst/base-files/etc/config/network b/target/linux/xburst/base-files/etc/config/network index a086003e3..8f8ab4bd7 100644 --- a/target/linux/xburst/base-files/etc/config/network +++ b/target/linux/xburst/base-files/etc/config/network @@ -9,5 +9,7 @@ config interface loopback config interface lan option ifname usb0 option proto static - option ipaddr 192.168.1.1 + option ipaddr 192.168.254.101 option netmask 255.255.255.0 + option gateway 192.168.254.100 + option dns 208.67.222.222 diff --git a/target/linux/xburst/base-files/etc/hosts b/target/linux/xburst/base-files/etc/hosts new file mode 100644 index 000000000..ba39265e4 --- /dev/null +++ b/target/linux/xburst/base-files/etc/hosts @@ -0,0 +1 @@ +127.0.0.1 BenNanoNote localhost diff --git a/target/linux/xburst/base-files/etc/inittab b/target/linux/xburst/base-files/etc/inittab new file mode 100644 index 000000000..c638c2517 --- /dev/null +++ b/target/linux/xburst/base-files/etc/inittab @@ -0,0 +1,8 @@ +::sysinit:/etc/init.d/rcS S boot +::shutdown:/etc/init.d/rcS K stop +tts/0::askfirst:/bin/ash --login +ttyS0::askfirst:/bin/ash --login +tty1::respawn:/bin/ash --login +tty2::askfirst:/bin/ash --login +tty3::askfirst:/bin/ash --login +tty4::askfirst:/bin/ash --login diff --git a/target/linux/xburst/base-files/etc/opkg.conf b/target/linux/xburst/base-files/etc/opkg.conf new file mode 100644 index 000000000..8d9e84f97 --- /dev/null +++ b/target/linux/xburst/base-files/etc/opkg.conf @@ -0,0 +1,5 @@ +src/gz snapshots http://downloads.qi-hardware.com/software/packages/NanoNote/Ben/latest +dest root / +dest ram /usr/share/opkg/tmp +lists_dir ext /usr/share/opkg +option overlay_root /overlay diff --git a/target/linux/xburst/base-files/etc/sysctl.conf b/target/linux/xburst/base-files/etc/sysctl.conf new file mode 100644 index 000000000..fb21a848e --- /dev/null +++ b/target/linux/xburst/base-files/etc/sysctl.conf @@ -0,0 +1,26 @@ +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 + +vm.overcommit_memory=1