summaryrefslogtreecommitdiff
path: root/packages/initrdscripts
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-12-25 20:26:40 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-12-25 20:26:40 +0000
commite5d9b3e9d7010e8298b5143ff5f8f78f76472eb1 (patch)
treed6c2cc641c5dd5100a7acc6b8a8128f36ba4c096 /packages/initrdscripts
parent37820a3964f1468cf12fad6817f1bd6947506b3c (diff)
initramfs-module-nfs: Fix packaging, add delay after g_ether load.
Diffstat (limited to 'packages/initrdscripts')
-rw-r--r--packages/initrdscripts/files/80-nfsboot.sh2
-rw-r--r--packages/initrdscripts/initramfs-module-nfs_1.0.bb4
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/initrdscripts/files/80-nfsboot.sh b/packages/initrdscripts/files/80-nfsboot.sh
index 5129a53ebb..e1588c16a8 100644
--- a/packages/initrdscripts/files/80-nfsboot.sh
+++ b/packages/initrdscripts/files/80-nfsboot.sh
@@ -31,10 +31,12 @@ if [ "$ROOT_DEVICE" = "/dev/nfs" ]; then
usb*)
echo "USB"
modprobe g_ether
+ sleep 5
;;
esac
ifconfig $device $client_ip
+ ping -c 2 $server_ip
)
echo "booting from NFS: $nfsroot"
diff --git a/packages/initrdscripts/initramfs-module-nfs_1.0.bb b/packages/initrdscripts/initramfs-module-nfs_1.0.bb
index acf71adb92..77c38799f3 100644
--- a/packages/initrdscripts/initramfs-module-nfs_1.0.bb
+++ b/packages/initrdscripts/initramfs-module-nfs_1.0.bb
@@ -1,5 +1,5 @@
SRC_URI = "file://80-nfsboot.sh"
-PR = "r1"
+PR = "r2"
DESCRIPTION = "An initramfs module for booting via NFS."
RDEPENDS = "initramfs-uniboot"
RRECOMMENDS = "kernel-module-g-ether kernel-module-nfs"
@@ -10,4 +10,4 @@ do_install() {
}
PACKAGE_ARCH = "all"
-FILES_${PN} += " /initrd.d/nfs "
+FILES_${PN} += " /initrd.d/* "