From e08c082e758afa3341a9ebb6e00927d9873c7230 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 3 Jul 2010 20:48:41 +0200 Subject: Adding preparations for booting through syslinux memdisk. --- scripts/live | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts') diff --git a/scripts/live b/scripts/live index 412094a..5b5a3b9 100755 --- a/scripts/live +++ b/scripts/live @@ -1704,6 +1704,20 @@ mountroot () # Do a local boot from hd livefs_root=${ROOT} else + if [ -x /usr/bin/memdiskfind ] + then + MEMDISK=$(/usr/bin/memdiskfind) + + if [ $? -eq 0 ] + then + # We found a memdisk, set up phram + modprobe phram phram=memdisk,${MEMDISK} + + # Load mtdblock, the memdisk will be /dev/mtdblock0 + modprobe mtdblock + fi + fi + # Scan local devices for the image i=0 while [ "$i" -lt 60 ] -- cgit v1.2.3