diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2008-03-08 18:21:54 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2008-03-08 18:21:54 +0000 |
commit | 03727f56ee88df4ea41213414c1f49c00984cf34 (patch) | |
tree | 51526512c802ac89d164d217404fc4f9fa11c3a8 /packages/initrdscripts/files | |
parent | 73972661ad93ae5b7f6bf792675dcf89c2e88ca6 (diff) |
initramfs-module-bootmenu: If rootdelay= param was not passed, assume 2s delay still.
* So people who don't bother to set correct rootdelay still have good chance
for there SD/CF cards detected.
* To disable the feature, explicit rootdelay=0 should be passed on kernel
command line.
Diffstat (limited to 'packages/initrdscripts/files')
-rw-r--r-- | packages/initrdscripts/files/30-bootmenu.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/initrdscripts/files/30-bootmenu.sh b/packages/initrdscripts/files/30-bootmenu.sh index 9960fbf34e..f5ecb8c828 100644 --- a/packages/initrdscripts/files/30-bootmenu.sh +++ b/packages/initrdscripts/files/30-bootmenu.sh @@ -15,6 +15,13 @@ if ! (echo " " | read -n1 foo) >/dev/null 2>&1; then exit 1 fi +if [ -z "$rootdelay" ]; then + echo "rootdelay parameter was not passed on kernel command line - assuming 2s delay" + echo "If you would like to avoid this delay, pass explicit rootdelay=0" + sleep 2 + dev_setup +fi + mkdir -p $MOUNTLOC list="" |