slitaz-tools rev 136
bootfloppybox: add memtest and etherboot with grub
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Apr 09 20:08:43 2008 +0000 (2008-04-09) |
parents | 6d24af2d7ed2 |
children | 312a02ab6a83 |
files | tinyutils/bootfloppybox |
line diff
1.1 --- a/tinyutils/bootfloppybox Wed Apr 09 19:50:17 2008 +0000 1.2 +++ b/tinyutils/bootfloppybox Wed Apr 09 20:08:43 2008 +0000 1.3 @@ -82,6 +82,8 @@ 1.4 <action>mkdir /media/floppy ; mount \$DEVICE /media/floppy</action> 1.5 <action>mkdir -p /media/floppy/boot/grub</action> 1.6 <action>cp /usr/lib/grub/i386-pc/stage? /media/floppy/boot/grub</action> 1.7 + <action>[ -f /usr/share/boot/etherboot ] && cp /usr/share/boot/etherboot /media/floppy/boot</action> 1.8 + <action>[ -f /usr/share/boot/memtest.lzma ] && unlzma -c /usr/share/boot/memtest.lzma > /media/floppy/boot/memtest</action> 1.9 <action>umount \$DEVICE</action> 1.10 <action>echo -e \"root (\${DEVICE#/dev/})\\nsetup (\${DEVICE#/dev/})\\nquit\" | grub --batch </action> 1.11 </button>