summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index 0a1141a6f5..486c9f2635 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -46,9 +46,14 @@ for hdname in $hdnamelist; do
46 echo -n "VENDOR=" 46 echo -n "VENDOR="
47 cat /sys/block/$hdname/device/vendor 47 cat /sys/block/$hdname/device/vendor
48 fi 48 fi
49 echo -n "MODEL=" 49 if [ -r /sys/block/$hdname/device/model ]; then
50 cat /sys/block/$hdname/device/model 50 echo -n "MODEL="
51 cat /sys/block/$hdname/device/uevent 51 cat /sys/block/$hdname/device/model
52 fi
53 if [ -r /sys/block/$hdname/device/uevent ]; then
54 echo -n "UEVENT="
55 cat /sys/block/$hdname/device/uevent
56 fi
52 echo 57 echo
53 # Get user choice 58 # Get user choice
54 while true; do 59 while true; do