2008-08-10 增加了一条 checkrange 命令,与 && 和 || 配合,就可以在用户指定的条件下执行命令。
举例来说,
checkrange 0x05,0x0F,0x85 parttype (hd0,1) || hide (hd0,1)
意思就是,检查分区 (hd0,1) 的类型,如果是扩展分区 05,0F,85,则不执行 hide 命令,否则执行 hide 命令。
On August 10, 2008, a new command `checkrange` was added. When used in conjunction with `&&` and `||`, it can execute commands under the conditions specified by the user.
For example,
checkrange 0x05,0x0F,0x85 parttype (hd0,1) || hide (hd0,1)
This means: check the type of partition (hd0,1). If it is an extended partition with 05, 0F, 85, then the `hide` command is not executed; otherwise, the `hide` command is executed.