Skip to content
Snippets Groups Projects
Commit d2b08fb4 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

x86: remove old soekris config hacks, install a more appropriate default...

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

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

SVN-Revision: 42888
parent 4c490c79
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2006 OpenWrt.org
config interface loopback config interface loopback
option ifname lo option ifname lo
option proto static option proto static
...@@ -5,20 +7,20 @@ config interface loopback ...@@ -5,20 +7,20 @@ config interface loopback
option netmask 255.0.0.0 option netmask 255.0.0.0
config interface lan config interface lan
option ifname eth1 option ifname eth0
option type bridge option type bridge
option proto static option proto static
option ipaddr 192.168.1.1 option ipaddr 192.168.1.1
option netmask 255.255.255.0 option netmask 255.255.255.0
option ip6assign 60 option ip6assign 60
config interface wan config interface wan
option ifname eth0 option ifname eth1
option proto dhcp option proto dhcp
config interface wan6 config interface wan6
option ifname eth0 option ifname eth1
option proto dhcpv6 option proto dhcpv6
config globals globals config globals globals
option ula_prefix auto option ula_prefix auto
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
#!/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
}
#!/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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment