[oe-commits] Angus Ainslie : initscripts: make g_ether run after the filesystem is mounted

git version control git at git.openembedded.org
Sat May 30 21:57:39 UTC 2009


Module: openembedded.git
Branch: fso/milestone5.5
Commit: f7972adb0332eb65a1c30fd1a77f7491bb1ed30a
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f7972adb0332eb65a1c30fd1a77f7491bb1ed30a

Author: Angus Ainslie <nytowl at openmoko.org>
Date:   Sat May 30 15:53:33 2009 -0600

initscripts: make g_ether run after the filesystem is mounted

---

 recipes/initscripts/initscripts-1.0/g_ether.sh |    3 +++
 recipes/initscripts/initscripts_1.0.bb         |    3 ++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/recipes/initscripts/initscripts-1.0/g_ether.sh b/recipes/initscripts/initscripts-1.0/g_ether.sh
index a7bc7bd..68581ee 100644
--- a/recipes/initscripts/initscripts-1.0/g_ether.sh
+++ b/recipes/initscripts/initscripts-1.0/g_ether.sh
@@ -89,5 +89,8 @@ echo "options g_ether $daddr $haddr" >/etc/modprobe.d/g_ether.conf
 
 # And now, since this is first boot, make sure the module gets probed
 echo "g_ether" > /etc/modutils/g_ether
+rmmod g_ether || true
+rmmod usbnet || true
+modprobe g_ether
 
 fi
diff --git a/recipes/initscripts/initscripts_1.0.bb b/recipes/initscripts/initscripts_1.0.bb
index 78c238d..1b3fbe3 100644
--- a/recipes/initscripts/initscripts_1.0.bb
+++ b/recipes/initscripts/initscripts_1.0.bb
@@ -137,7 +137,8 @@ do_install_append_angstrom () {
 do_install_append_openmoko () {
  	# Oepnmoko persistent USB networking
 	install -m 0755 ${WORKDIR}/g_ether.sh	${D}${sysconfdir}/init.d
-	ln -sf	../init.d/g_ether.sh	${D}${sysconfdir}/rcS.d/S03g_ether.sh
+	# Get this to run after the firlesytem is mounted
+	ln -sf	../init.d/g_ether.sh	${D}${sysconfdir}/rcS.d/S36g_ether.sh
 
 	# drop some things to speed up boot
 	rm ${D}${sysconfdir}/rcS.d/S02banner





More information about the Openembedded-commits mailing list