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> SVN-Revision: 42888master
parent
4c490c79b2
commit
d2b08fb4ab
@ -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 |
@ -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 |
||||
} |
@ -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 |
||||
} |
Loading…
Reference in new issue