[oe-commits] Mike Westerhof : SlugOS: slugos-init - No longer switch to DHCP if static IP==192.168.1.77

git version control git at git.openembedded.org
Sun Feb 13 17:11:36 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: cd58f6ff853e1f96f1995314bcce7dafed8f74b2
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=cd58f6ff853e1f96f1995314bcce7dafed8f74b2

Author: Mike Westerhof <mwester at dls.net>
Date:   Sun Feb 13 11:07:38 2011 -0600

SlugOS: slugos-init - No longer switch to DHCP if static IP==192.168.1.77
This behavior was confusing to users, and was a prime contributor to the
"I've lost my Slug!" network problem.  This fix ensures that if a user
resets their NSLU2 to factory defaults, it will boot up at the expected
IP address in all cases.

---

 recipes/slugos-init/files/sysconf      |    5 +++--
 recipes/slugos-init/slugos-init_5.0.bb |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/recipes/slugos-init/files/sysconf b/recipes/slugos-init/files/sysconf
index 6a9c70d..8df6c90 100644
--- a/recipes/slugos-init/files/sysconf
+++ b/recipes/slugos-init/files/sysconf
@@ -57,13 +57,14 @@ sysconf_read(){
 		# slugos, 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)
+		#  Note: SlugOS 5.8 - Due to mass confusion, the bootproto is no
+		#  longer changed if it is set to static with ip=192.168.1.77.
 		sedcmd='/^\[[^][]*\]$/p;'
 		# only do the ip_addr and lan_interface fixups on NSLU2
 		if test "$(machine)" = nslu2
 		then
 			sedcmd="$sedcmd"'
-				s/^lan_interface=ixp0$/lan_interface=eth0/;
-				/^ip_addr=192\.168\.1\.77$/,/^bootproto/s/^bootproto=static$/bootproto=dhcp/;'
+				s/^lan_interface=ixp0$/lan_interface=eth0/;'
 		fi
 		# always fix up the hardware addr if it is present
 		mac="$(config mac)"
diff --git a/recipes/slugos-init/slugos-init_5.0.bb b/recipes/slugos-init/slugos-init_5.0.bb
index 5b823b3..dcf184a 100644
--- a/recipes/slugos-init/slugos-init_5.0.bb
+++ b/recipes/slugos-init/slugos-init_5.0.bb
@@ -4,7 +4,7 @@ PRIORITY = "required"
 LICENSE = "GPL"
 DEPENDS = "base-files devio"
 RDEPENDS_${PN} = "busybox devio"
-PR = "r14"
+PR = "r15"
 
 SRC_URI = "file://boot/flash \
 	   file://boot/disk \





More information about the Openembedded-commits mailing list