From: Ben Gras Date: Mon, 22 Aug 2005 10:02:46 +0000 (+0000) Subject: More cutting X-Git-Tag: v3.1.0~320 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch01.html?a=commitdiff_plain;h=919b988be155b27e81467afc5a8c227f82fc564b;p=minix.git More cutting --- diff --git a/commands/scripts/setup.sh b/commands/scripts/setup.sh index 5d76e6bb2..2fd9794ae 100755 --- a/commands/scripts/setup.sh +++ b/commands/scripts/setup.sh @@ -419,27 +419,12 @@ fi umount /dev/$root >/dev/null || exit # Unmount the new root. -# Compute size of the second level file block cache. -case `arch` in -i86) - cache=`expr "0$memsize" - 1024` - test $cache -lt 32 && cache=0 - test $cache -gt 512 && cache=512 - ;; -*) - cache=`expr "0$memsize" - 2560` - test $cache -lt 64 && cache=0 - test $cache -gt 1024 && cache=1024 -esac -# echo "Second level file system block cache set to $cache KB." -if [ $cache -eq 0 ]; then cache=; else cache="ramsize=$cache"; fi - # Make bootable. installboot -d /dev/$root /usr/mdec/bootblock /boot/boot >/dev/null || exit -edparams /dev/$root "rootdev=$root; ramimagedev=$root; $disable $cache; main() { echo By default, MINIX 3 will automatically load in 3 seconds.; echo Press ESC to enter the monitor for special configuration.; trap 3000 boot; menu; }; save" || exit +edparams /dev/$root "rootdev=$root; ramimagedev=$root; $disable; main() { echo By default, MINIX 3 will automatically load in 3 seconds.; echo Press ESC to enter the monitor for special configuration.; trap 3000 boot; menu; }; save" || exit pfile="/usr/src/tools/fdbootparams" # echo "Remembering boot parameters in ${pfile}." -echo "rootdev=$root; ramimagedev=$root; $cache; save" >$pfile || exit +echo "rootdev=$root; ramimagedev=$root; $disable; save" >$pfile || exit sync echo "