1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[ps3]: Update default configuration to use profiles

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15229 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
hcg
2009-04-16 10:40:15 +00:00
parent ad0ca46aad
commit cadbb5f37c
8 changed files with 59 additions and 16 deletions

View File

@@ -0,0 +1,13 @@
# Copyright (C) 2006 OpenWrt.org
config interface loopback
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
config interface lan
option ifname eth0
option proto dhcp
option ipaddr 192.168.1.1
option netmask 255.255.255.0

View File

@@ -19,12 +19,13 @@ system_config() {
config_get log_ip "$cfg" log_ip
config_get log_size "$cfg" log_size
config_get log_port "$cfg" log_port
config_get log_file "$cfg" log_file
# use a shared mem buffer for local default
[ -z $log_file -a -z "$log_size" ] && log_size=16
syslogd ${log_size:+-C $log_size} ${log_file:+-O $log_file} \
${log_ip:+-L -R $log_ip}
klogd
[ -x /sbin/syslogd ] && syslogd ${log_size:+-C $log_size} \
${log_file:+-O $log_file} ${log_ip:+-L -R $log_ip}
[ -x /sbin/klogd ] && klogd
}
apply_uci_config() {(
@@ -37,16 +38,15 @@ start() {
[ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc
[ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD
apply_uci_config
config_load system
config_foreach system_config system
mkdir -p /var/run
mkdir -p /var/log
mkdir -p /var/lock
mkdir -p /var/state
mkdir -p /tmp/.uci
apply_uci_config
config_load system
config_foreach system_config system
chown 0700 /tmp/.uci
touch /var/log/wtmp
touch /var/log/lastlog

View File

@@ -0,0 +1,11 @@
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=1
net.ipv4.tcp_fin_timeout=30
net.ipv4.tcp_keepalive_time=120
net.ipv4.tcp_timestamps=0
net.core.netdev_max_backlog=30