|
发表于 2005-7-23 13:42:51
|
显示全部楼层
Post by troll
本来想用strings硬盘的mbr,但发现其中既有LILO,又有GRUB,奇怪了。
不过这办法还是可行的;用LILO作bootloader的话其中不会有GRUB字符吧
- if dd if=/dev/hda bs=446 count=1 | strings | grep -q GRUB; then
- echo "Your bootloader is GRUB"
- elif dd if=/dev/hda bs=446 count=1 | strings | grep LILO; then
- echo "Your bootloader is LILO"
- else
- echo "Unknown bootloader"
- fi
复制代码
GOOD~~~ :2cool |
|