x86: remove old soekris config hacks, install a more appropriate default /etc/config/network with lan+wan

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42888 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2014-10-12 20:25:30 +00:00
parent 55fe29b1b9
commit cc8b4b8143
4 changed files with 7 additions and 56 deletions

View File

@ -1,3 +1,5 @@
# Copyright (C) 2006 OpenWrt.org
config interface loopback
option ifname lo
option proto static
@ -5,7 +7,7 @@ config interface loopback
option netmask 255.0.0.0
config interface lan
option ifname eth1
option ifname eth0
option type bridge
option proto static
option ipaddr 192.168.1.1
@ -13,11 +15,11 @@ config interface lan
option ip6assign 60
config interface wan
option ifname eth0
option ifname eth1
option proto dhcp
config interface wan6
option ifname eth0
option ifname eth1
option proto dhcpv6
config globals globals

View File

@ -1,12 +0,0 @@
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 type bridge
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0

View File

@ -1,20 +0,0 @@
#!/bin/sh /etc/rc.common
#
# Copyright (C) 2010 Thinktube Inc.
#
START=05
start() {
. /lib/soekris.sh
local board=$(net48xx_board_name)
[ ! -d /etc/defconfig/$board ] && board="net4826"
for f in $( ls /etc/defconfig/$board ); do
if [ ! -e /etc/config/$f ]; then
cp /etc/defconfig/$board/$f /etc/config/
fi
done
}

View File

@ -1,19 +0,0 @@
#!/bin/sh
net48xx_board_name () {
local name
local pci=`wc -l /proc/bus/pci/devices`
case "$pci" in
*"8"*)
name="net4826"
;;
*1[0-4]*)
name="net4801"
;;
*)
name="net4826"
;;
esac
echo $name
}