wok-next diff linux/stuff/bootloader.sh @ rev 13161
get-wifi-firmware: fix post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 28 09:58:01 2012 +0200 (2012-07-28) |
parents | e1f0bb1ee577 |
children | cae46feb2397 |
line diff
1.1 --- a/linux/stuff/bootloader.sh Tue May 22 13:40:58 2012 +0200 1.2 +++ b/linux/stuff/bootloader.sh Sat Jul 28 09:58:01 2012 +0200 1.3 @@ -226,7 +226,7 @@ 1.4 store 8 0x04A $((2+2*$setupsz)) $bs update displayinfo call 1.5 fi 1.6 1.7 - # Store cmdline after setup 1.8 + # Store cmdline after setup for kernels >= 0.99 1.9 if [ -n "$CMDLINE" ]; then 1.10 echo -n "$CMDLINE" | ddq bs=512 count=1 conv=sync >> $bs 1.11 CmdlineOfs=0x9E00 # Should be in 0x8000 .. 0xA000 1.12 @@ -283,6 +283,10 @@ 1.13 [ $PAD -ne 512 ] && ddq if=/dev/zero bs=1 count=$PAD >> $PREFIX 1.14 exit 1.15 fi 1.16 +[ $FORMAT -lt 1440 ] && store 8 0xEF 16 $bs 1.2M 1.17 +[ $FORMAT -lt 1200 ] && store 8 0xEF 10 $bs 720K 1.18 +[ $FORMAT -lt 360 ] && store 8 0xEF 9 $bs 320K 1.19 +[ $FORMAT -lt 320 ] && store 8 0xF8 2 $bs 160K 1.20 floppyset | split -b ${FORMAT}k /dev/stdin floppy$$ 1.21 i=1 1.22 ls floppy$$* 2> /dev/null | while read file ; do