summaryrefslogtreecommitdiff
path: root/packages/openslug-init/openslug-init-0.10/initscripts/sysconfsetup
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2005-07-04 17:25:45 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-04 17:25:45 +0000
commit1c2c9a48b6502d670f0301041ebf6688fe2253a5 (patch)
treec1cf80fa5009f1ac593f94d8c3d22cda11149b82 /packages/openslug-init/openslug-init-0.10/initscripts/sysconfsetup
parent78aec07f5952e183e52782d62300aad7228ceb09 (diff)
parent44393416e78093a7d0d6f6ec038729e0b7e45e25 (diff)
merge of 3337830555cb6398337a599f4649e61cac2ae122
and a96120ae4432f090395e5fa91129bb55062af8ee
Diffstat (limited to 'packages/openslug-init/openslug-init-0.10/initscripts/sysconfsetup')
-rw-r--r--packages/openslug-init/openslug-init-0.10/initscripts/sysconfsetup4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/initscripts/sysconfsetup b/packages/openslug-init/openslug-init-0.10/initscripts/sysconfsetup
index 1940b00ff8..31ff38d7ee 100644
--- a/packages/openslug-init/openslug-init-0.10/initscripts/sysconfsetup
+++ b/packages/openslug-init/openslug-init-0.10/initscripts/sysconfsetup
@@ -60,9 +60,11 @@ then
# is removed (to be exact, the sed script selects only lines
# which match one of the two above). The lan interface, which
# defaults to ixp0, is changed to the correct value for openslug,
- # eth0
+ # eth0. The bootproto, which LinkSys sets to static in manufacturing,
+ # is reset to dhcp if the IP is still the original (192.168.1.77)
devio "<<$sysdev" cpb fb1,10 | sed -n '/^\[[^][]*\]$/p;
s/^lan_interface=ixp0$/lan_interface=eth0/;
+ /^ip_addr=192\.168\.1\.77$/,/^bootproto/s/^bootproto=static$/bootproto=dhcp/;
/^[-a-zA-Z0-9_][-a-zA-Z0-9_]*=/p' >/etc/default/sysconf
#
# The SysConf must have a hardware id, if it doesn't it has