diff options
author | John Bowler <jbowler@nslu2-linux.org> | 2005-07-03 18:35:01 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-07-03 18:35:01 +0000 |
commit | 0ac3fb9c6e6556cfa733c7db37411ffb6292d7ff (patch) | |
tree | 87503f279232d1db2f2c9c1ea3d0f48b3f4b4e5e /packages/openslug-init/openslug-init-0.10 | |
parent | b87b907d9a14d0badd6c8d65b945306b66c5e4a1 (diff) |
Make a raw, unconfigured, NSLU2 default to DHCP boot proto
Diffstat (limited to 'packages/openslug-init/openslug-init-0.10')
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/initscripts/sysconfsetup | 4 |
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 |